-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(pipelines): stack tags #10533
fix(pipelines): stack tags #10533
Conversation
Apply stack tags to the stacks deployed using CDK Pipelines. Fixes #9260.
(Not ready to be merged yet, needs more tests--specifically around CLI backwards compatibility of still reading tags from old assemblies) |
import * as path from 'path'; | ||
|
||
/** | ||
* rm -rf reimplementation, don't want to depend on an NPM package for this |
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.
What's wrong with using an npm package for tests?
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.
Let's see. I can either have this 10-line function or
└─┬ [email protected]
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
└── [email protected]
fullConfigPath = `${fullTemplatePath}.config.json`; | ||
|
||
// Write the template configuration file (for parameters into CreateChangeSet call that | ||
// cannot be configured any other way). They must come from a file, and there's unfortunately |
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.
What's wrong with this way?
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.
Feels like this would be an excellent case for a construct adding an artifact to the synthesized output of a cloud assembly, as an implementation detail of the construct.
What's happening now is that we're writing a file which is right next to another file that we assume is going to be in a cloud assembly, of which we kinda guess the name is probably going to be unused, which is invisible any of the rest of the framework.
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 |
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). |
Apply stack tags to the stacks deployed using CDK Pipelines.
Taking this opportunity to make tags easier to work with -- move them from metadata into cloud artifact properties.
Fixes #9260.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license