Skip to content

Commit

Permalink
removed metadata client
Browse files Browse the repository at this point in the history
  • Loading branch information
pecollet committed Feb 1, 2024
1 parent 64aa169 commit 4bd63d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.neo4j</groupId>
<artifactId>aws-ec2-asg-discovery</artifactId>
<version>0.3.4</version>
<version>0.3.5</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -34,11 +34,11 @@
<version>${neo4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>imds</artifactId>
<version>2.23.14</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>software.amazon.awssdk</groupId>-->
<!-- <artifactId>imds</artifactId>-->
<!-- <version>2.23.14</version>-->
<!-- </dependency>-->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>autoscaling</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/cs/neo4j/AwsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ private void createClients(){
this.ec2Client = Ec2Client.builder()
.credentialsProvider(awsCredentialsProvider())
.build();
Ec2MetadataClient imdsClient = Ec2MetadataClient.builder()
.build();
Ec2MetadataResponse metadataResponse = imdsClient.get("/latest/meta-data/");
log.info(metadataResponse.asString());
// Ec2MetadataClient imdsClient = Ec2MetadataClient.builder()
// .build();
// Ec2MetadataResponse metadataResponse = imdsClient.get("/latest/meta-data/");
// log.info(metadataResponse.asString());
}

}
Expand Down

0 comments on commit 4bd63d5

Please sign in to comment.