-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat(s3Endpoint): enable configurable s3 endpoint as global or regional #1525
Conversation
@@ -38,7 +38,7 @@ | |||
<dependency> | |||
<groupId>software.amazon.awssdk</groupId> | |||
<artifactId>bom</artifactId> | |||
<version>2.17.295</version> | |||
<version>2.20.138</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this sdk version change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, 2.17.295 is not compatible with new greengrassv2-data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be careful with this bump and check if it breaks compatibility with any other functionalities
src/main/java/com/aws/greengrass/deployment/DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
8463a21
to
b4633d5
Compare
@@ -38,7 +38,7 @@ | |||
<dependency> | |||
<groupId>software.amazon.awssdk</groupId> | |||
<artifactId>bom</artifactId> | |||
<version>2.17.295</version> | |||
<version>2.20.138</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be careful with this bump and check if it breaks compatibility with any other functionalities
src/main/java/com/aws/greengrass/deployment/DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/com/aws/greengrass/deployment/DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
b4633d5
to
34d4073
Compare
src/main/java/com/aws/greengrass/deployment/DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
c0dc6ab
to
669cf25
Compare
669cf25
to
3c73c79
Compare
src/main/java/com/aws/greengrass/deployment/model/S3EndpointType.java
Outdated
Show resolved
Hide resolved
src/main/java/com/aws/greengrass/deployment/DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
src/test/java/com/aws/greengrass/util/S3SdkClientFactoryTest.java
Outdated
Show resolved
Hide resolved
3c73c79
to
9671c7c
Compare
if (isGlobal && S3_REGIONAL_ENDPOINT_VALUE.equals(s3EndpointSystemProp)) { | ||
System.clearProperty(S3_ENDPOINT_PROP_NAME); | ||
refreshClientCache(); | ||
logger.atInfo().log("s3 endpoint set to global"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not log this at info, this is going to happen a lot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
import software.amazon.awssdk.services.greengrassv2data.model.GetDeploymentConfigurationResponse; | ||
import software.amazon.awssdk.services.greengrassv2data.model.GreengrassV2DataException; | ||
import software.amazon.awssdk.services.greengrassv2data.model.IntegrityCheck; | ||
import software.amazon.awssdk.services.greengrassv2data.model.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no * imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
9671c7c
to
a14eb38
Compare
2e76255
to
fd26c49
Compare
Binary incompatibility detected for commit bedf949. com.aws.greengrass.componentmanager.builtins.ArtifactDownloaderFactory is binary incompatible and is source incompatible because of CONSTRUCTOR_REMOVED Produced by binaryCompatability.py |
Unit Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against bedf949 |
Integration Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against bedf949 |
Issue #, if available:
Description of changes:
Enable s3 endpoint to be configurable, users could merge the s3 endpoint type from configuration to use"REGIONAL" or "GLOBAL".
Why is this change necessary:
This change unblocks VPC users who can only use regional endpoints.
How was this change tested:
Any additional information or context required to review the change:
Documentation Checklist:
Compatibility Checklist:
any deprecated method or type.
Refer to Compatibility Guidelines for more information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.