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

Upgrade localstack and enable new services #1504

Merged
merged 11 commits into from
Jul 16, 2019
Merged

Upgrade localstack and enable new services #1504

merged 11 commits into from
Jul 16, 2019

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented May 28, 2019

Replaces #1413

Fixes #1496

@rnorth rnorth changed the title Upgrade localstack Upgrade localstack and enable new services May 28, 2019
@@ -5,4 +5,5 @@ dependencies {

compileOnly 'com.amazonaws:aws-java-sdk-s3:1.11.479'
testCompile 'com.amazonaws:aws-java-sdk-s3:1.11.479'
testCompile 'com.amazonaws:aws-java-sdk-sqs:1.11.479'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added for new test

@@ -82,20 +82,11 @@ public LocalStackContainer withServices(Service... services) {
final String address = getContainerIpAddress();
String ipAddress = address;
try {
// resolve IP address and use that as the endpoint so that path-style access is automatically used for S3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See javadocs - using an IP address for the endpoint ensures that the AWS SDK uses path-style access under the covers, which is the desired effect for the newer version of Localstack.

We use InetAddress.getByName(...) to convert the container IP address to an IP regardless of its original form (e.g. could be localhost, could already be an IP, could be a hostname).

The endpoint URL returned by this helper method is strictly for use by the Docker host.

STEPFUNCTIONS("stepsfunctions", 4585),
CLOUDWATCHLOGS("cloudwatchlogs", 4586),
STS("sts", 4592),
IAM("iam", 4593);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reformatted; @trollinger74940 added new services here.

Copy link
Member

@bsideup bsideup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bsideup bsideup merged commit 041d508 into master Jul 16, 2019
@delete-merged-branch delete-merged-branch bot deleted the upgrade-localstack branch July 16, 2019 11:10
@bsideup bsideup added the dependencies Pull requests that update a dependency file label Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for localstack's secretsmanager service
5 participants