-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(ecs): secret JSON key for environment variables #6435
Conversation
Amazon Elastic Container Service now supports reading AWS Secrets Manager secrets from a key within a JSON object. See https://aws.amazon.com/about-aws/whats-new/2020/02/amazon-ecs-now-supports-aws-secrets-manager-version-and-json-keys/ Closes aws#5665
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Any update/feedback here? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
This is looking great and would be very useful. @eladb any thoughts on ability to get this merged? |
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.
Overall LGTM. Minor feedback regarding some extra characters in integ example and document string.
packages/@aws-cdk/aws-ecs/test/fargate/integ.secret-json-key.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-ecs/test/fargate/integ.secret-json-key.expected.json
Outdated
Show resolved
Hide resolved
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
feat(ecs): secret JSON key for environment variables Amazon Elastic Container Service now supports reading AWS Secrets Manager secrets from a key within a JSON object. See https://aws.amazon.com/about-aws/whats-new/2020/02/amazon-ecs-now-supports-aws-secrets-manager-version-and-json-keys/ Closes aws#5665
It seems this cloudformation-feature is only supported for ECS using the EC2 launch type, but not for Fargate: aws/containers-roadmap#385 (comment) Perhaps an idea to add this to the docs (and review the fargate-tests in the 97959f6)? |
You are right, see #7317 |
Awesome work! @jogold May I plz confirm if |
What do you mean exactly? |
I guess I have misunderstood the rotation feature of Secrets Manager. I thought it automatically triggers my services to update the password and redeploy the service when a secret is rotated. It seems not the case. |
Hello, that's what I thought as well. May you explain what the case is as you found it out to be? |
Commit message
feat(ecs): secret JSON key for environment variables
Amazon Elastic Container Service now supports reading AWS Secrets Manager secrets from a key within a JSON object.
See https://aws.amazon.com/about-aws/whats-new/2020/02/amazon-ecs-now-supports-aws-secrets-manager-version-and-json-keys/
Closes #5665
End of commit message
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license