-
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
@aws-cdk/ecs: Override container name #8044
Comments
Hey folks! 👋 Can I help here to get this done? It doesn't look too hard. I would volunteer to implement it and open a PR. What do you think? |
Great! Unfortunately, I haven't been able to find the time to work on it. So I'm happy if you work on it. |
@karupanerura looking forward to your feedback. I just copy and paste your code in the description. |
Looks good! |
So, what to do next? This is my first contribution to CDK. Do you review / approve the PR, do I need to find someone else, or are there reviews who will pick up the PR eventually? |
please fix it: https://github.com/aws/aws-cdk/runs/2216420393 |
This error is already fixed. I don't think this is a feature and thus changed the title of the PR. |
Related: #13681 |
Adds container name property to ContainerDefinitionProps which allows to explicitly set container name. If undefined, this default is still the node id. Closes #8044 Closes #13681 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Adds container name property to ContainerDefinitionProps which allows to explicitly set container name. If undefined, this default is still the node id. Closes aws#8044 Closes aws#13681 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Adds container name property to ContainerDefinitionProps which allows to explicitly set container name. If undefined, this default is still the node id. Closes aws#8044 Closes aws#13681 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Was this ever merged? Are we able to change the container name using overrides? |
Allow to override container name by constructor property.
Use Case
With the current implementation, these will be the same value implicitly.
This is confusing for our team because the naming conventions for the names in our current(exists) configuration and the Construct IDs are different.
So we need to manage the Construct ID and the name separately.
Proposed Solution
Add
containerName
property toContainerDefinitionProps
and overridecontainerName
by this.https://github.com/aws/aws-cdk/blob/v1.39.0/packages/%40aws-cdk/aws-ecs/lib/container-definition.ts#L380
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: