From 4bd63d516ae759b3188f1828ec3ac54e6462fb12 Mon Sep 17 00:00:00 2001 From: David Pecollet Date: Thu, 1 Feb 2024 12:48:58 +0000 Subject: [PATCH] removed metadata client --- pom.xml | 12 ++++++------ src/main/java/cs/neo4j/AwsClient.java | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 50b6e62..74ad3b8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.neo4j aws-ec2-asg-discovery - 0.3.4 + 0.3.5 17 @@ -34,11 +34,11 @@ ${neo4j.version} provided - - software.amazon.awssdk - imds - 2.23.14 - + + + + + software.amazon.awssdk autoscaling diff --git a/src/main/java/cs/neo4j/AwsClient.java b/src/main/java/cs/neo4j/AwsClient.java index 1e7b69b..d960ee7 100644 --- a/src/main/java/cs/neo4j/AwsClient.java +++ b/src/main/java/cs/neo4j/AwsClient.java @@ -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()); } }