-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(aws-ecs): Adds an addSecret() method for a ContainerDefinition #18960
Conversation
@madeline-k Can you please review this and merge in when time permits? We need this in our current ECS projects & workflows. TIA. |
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.
Thank you for implementing this feature, @danwiltshire! Nice work. I just have one comment.
…d is now private with a getter method
Pull request has been modified.
@madeline-k Hello, I updated the PR as requested but these tests are now failing. Do you know how to resolve this? Thanks
|
This PR has been in BUILD FAILING for 21 days, and looks abandoned. It will be closed in 10 days if no further commits are pushed to it. |
@madeline-k it looks like this PR has gone stale. We really need this ability in our project. Is there anything I could do to get this moving forward? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
} else { | ||
return false; | ||
} | ||
} |
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.
Maybe use getter syntax to allow it to be accessed as a property is what needs to be changed:
public get referencesSecretJsonField(): boolean {
That would allow it to be accessed as obj.referencesSecretJsonField
thus not breaking API spec.
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.
Additionally, it could probably also just check length of secrets array thus not requiring the private backing field.
This PR has been in the BUILD FAILING state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week. |
This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error. |
I'm using Aspects to configure already-instantiated resources in CDK. This PR will enable adding a Secret to a ContainerDefinition, similar to addEnvironment().
Had to remove the
readonly
modifier to allow theaddSecret()
method to set or push secrets. Let me know if there's a better way of handling this.Added an integration test, worked as expected in my environment.
closes #18959
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license