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

Migrate to AWS_ENDPOINT_URL #8

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Migrate to AWS_ENDPOINT_URL #8

merged 1 commit into from
Nov 22, 2023

Conversation

joe4dev
Copy link

@joe4dev joe4dev commented Nov 20, 2023

Adopt AWS_ENDPOINT_URL as the official endpoint variable introduced by AWS.

See https://docs.localstack.cloud/user-guide/tools/transparent-endpoint-injection/

/cc repo maintainer @steffyP

Suggested Follow-Up

Why do we adopt the application code for LocalStack rather than injecting the configuration through IaC like in the original AWS example?
https://github.com/aws-samples/amazon-rds-init-cdk/blob/main/demos/rds-init-fn-code/index.js#L14

IMHO, It would be better to adopt clean IaC practices and separate code from configuration. Then we don't need to rely on LocalStack-only environment variables.

Similar case for localstack-samples/sample-serverless-rds-proxy-demo#18

@joe4dev joe4dev requested a review from steffyP November 20, 2023 21:43
@joe4dev joe4dev self-assigned this Nov 20, 2023
Copy link
Collaborator

@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

Thanks for adapting the sample @joe4dev!
sorry for the late reply, totally missed the ping.

ad follow-up: yes, you are right! I think that was just automation of adapting the samples, because initially we tried to make samples work with community version as well. Which for RDS obviously wouldn't work at all.

@steffyP steffyP merged commit 5ba7da5 into main Nov 22, 2023
1 check passed
@steffyP steffyP deleted the migrate-to-aws-endpoint-url branch November 22, 2023 13:42
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.

None yet

2 participants