Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Backporting #7372 to 2.x (upgrade to AWS SDK v2) #7926

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

dblock
Copy link
Member

@dblock dblock commented Jun 6, 2023

Backporting #7372 to 2.x.

  • AWS SDK v2.
  • Migrating com.amazonaws.sdk.ec2MetadataServiceEndpointOverride to aws.ec2MetadataServiceEndpoint per https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-client-changes.html.
  • Fetch host address for EC2 metadata service from SdkSettings.
  • Deprecations of running with partial keys were removed in AWS SDK v2.
  • Underscore is not a valid host name, thus URI.create doesn't treat it as a host.
  • Added missing JARs, all tests pass.
  • Setup a default AWS profile under config, don't read ~/.aws.
  • Re-enable availability zone node attribute implementation.
  • Cleaning up privileged calls using SocketAccess
  • Consistently setup and teardown AWS settings in repository-s3.
  • Using SdkException instead of RuntimeException in S3BlobContainer
  • Removing AwsSessionCredentials object from S3BasicSesstionCredentials
  • Removing S3BasicCredentials and S3BasicSessionCredentials

Signed-off-by: dblock dblock@amazon.com
Co-authored-by: Raghuvansh Raj raghraaj@amazon.com
(cherry picked from commit b15ffc9)

Description

[Describe what this change achieves]

Related Issues

#7312

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

* AWS SDK v2.
* Migrating com.amazonaws.sdk.ec2MetadataServiceEndpointOverride to aws.ec2MetadataServiceEndpoint per https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-client-changes.html.
* Fetch host address for EC2 metadata service from SdkSettings.
* Deprecations of running with partial keys were removed in AWS SDK v2.
* Underscore is not a valid host name, thus URI.create doesn't treat it as a host.
* Added missing JARs, all tests pass.
* Setup a default AWS profile under config, don't read ~/.aws.
* Re-enable availability zone node attribute implementation.
* Cleaning up privileged calls using SocketAccess
* Consistently setup and teardown AWS settings in repository-s3.
* Using SdkException instead of RuntimeException in S3BlobContainer
* Removing AwsSessionCredentials object from S3BasicSesstionCredentials
* Removing S3BasicCredentials and S3BasicSessionCredentials

Signed-off-by: dblock <dblock@amazon.com>
Co-authored-by: Raghuvansh Raj <raghraaj@amazon.com>
(cherry picked from commit b15ffc9)
@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.aggregations.bucket.DateHistogramIT.classMethod

@dblock dblock merged commit 3e9f277 into opensearch-project:2.x Jun 6, 2023
@dblock dblock deleted the 2.x-aws-sdk-v2 branch June 6, 2023 17:21
gaiksaya pushed a commit to gaiksaya/OpenSearch that referenced this pull request Jun 26, 2023
…t#7926)

* AWS SDK v2.
* Migrating com.amazonaws.sdk.ec2MetadataServiceEndpointOverride to aws.ec2MetadataServiceEndpoint per https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-client-changes.html.
* Fetch host address for EC2 metadata service from SdkSettings.
* Deprecations of running with partial keys were removed in AWS SDK v2.
* Underscore is not a valid host name, thus URI.create doesn't treat it as a host.
* Added missing JARs, all tests pass.
* Setup a default AWS profile under config, don't read ~/.aws.
* Re-enable availability zone node attribute implementation.
* Cleaning up privileged calls using SocketAccess
* Consistently setup and teardown AWS settings in repository-s3.
* Using SdkException instead of RuntimeException in S3BlobContainer
* Removing AwsSessionCredentials object from S3BasicSesstionCredentials
* Removing S3BasicCredentials and S3BasicSessionCredentials

Signed-off-by: dblock <dblock@amazon.com>
Co-authored-by: Raghuvansh Raj <raghraaj@amazon.com>
(cherry picked from commit b15ffc9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants