Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-380

Where have EC2Client and AWSKeyPairClient gone from aws providers

    XMLWordPrintableJSON

Details

    Description

      I am migrating jclouds version to 1.7 snapshot from 1.6.0,previously my code was working fine for creating and importing keypairs.
      but with latest update i cant find the AWSKeyPairClient and EC2Client classes.
      Like this
      AWSKeyPairClient keyPairClient = computeService.getContext().unwrap().getApi().getKeyPairServices();
      Set<KeyPair> existingKeyPairs = keyPairClient.describeKeyPairsInRegion(regionName, keyPairName);
      keyPair = keyPairClient.createKeyPairInRegion(regionName, keyPairName);

      This is my repo
      <repository>
      <id>apache-snapshot-repository</id>
      <url>https://repository.apache.org/content/repositories/snapshots</url>
      <releases>
      <enabled>false</enabled>
      </releases>
      <snapshots>
      <enabled>true</enabled>
      </snapshots>

      </repository>
      This is my dependency
      <dependency>
      <groupId>org.apache.jclouds.provider</groupId>
      <artifactId>aws-ec2</artifactId>
      <version>1.7.0-SNAPSHOT</version>
      </dependency>

      but with this
      <repository>
      <id>apache-snapshots</id>
      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
      <releases>
      <enabled>false</enabled>
      </releases>
      <snapshots>
      <enabled>true</enabled>
      </snapshots>
      </repository>

      and dependecy
      <dependency>
      <groupId>org.apache.jclouds.provider</groupId>
      <artifactId>aws-ec2</artifactId>
      <version>1.7.0-SNAPSHOT</version>
      </dependency>

      i am able to refer EC2Client

      is there something i am missing

      Attachments

        Activity

          People

            Unassigned Unassigned
            jayant_kaushal Jayant Kaushal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: