Skip to content

fix(pipelines): "Node with duplicate id" on duplicate stack names#31328

Merged
mergify[bot] merged 2 commits intomainfrom
huijbers/duplicate-stack-name
Sep 25, 2024
Merged

fix(pipelines): "Node with duplicate id" on duplicate stack names#31328
mergify[bot] merged 2 commits intomainfrom
huijbers/duplicate-stack-name

Conversation

@rix0rrr
Copy link
Copy Markdown
Contributor

@rix0rrr rix0rrr commented Sep 5, 2024

When having 2 stacks with the same name in the same stage (which makes sense when deploying them to different environments), the CodePipeline Action name is derived from the stack name, and will be duplicated.

Detect if an graph node name is already being used and if so, use environment information to try and make the name unique.

Closes #30960.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

When having 2 stacks with the same name in the same stage (which makes
sense when deploying them to different environments), the CodePipeline
Action name is derived from the stack name, and will be duplicated.

Detect if an graph node name is already being used and if so, use
environment information to try and make the name unique.
@aws-cdk-automation aws-cdk-automation requested a review from a team September 5, 2024 12:53
@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 labels Sep 5, 2024
@rix0rrr rix0rrr added pr-linter/exempt-integ-test The PR linter will not require integ test changes and removed bug This issue is a bug. p1 effort/medium Medium work item – several days of effort labels Sep 5, 2024
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 5, 2024
@rix0rrr rix0rrr self-assigned this Sep 5, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 5, 2024
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 25, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 25, 2024
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: e155ba4
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 16b74f3 into main Sep 25, 2024
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 25, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot deleted the huijbers/duplicate-stack-name branch September 25, 2024 16:55
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipelines: Runtime error when a Stage has multiple Stacks with the same stack name

3 participants