Skip to content
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

Merged
merged 5 commits into from
Sep 28, 2020
Merged

fix(pipelines): stack tags #10533

merged 5 commits into from
Sep 28, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Sep 25, 2020

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

Apply stack tags to the stacks deployed using CDK Pipelines.

Fixes #9260.
@rix0rrr rix0rrr requested review from njlynch and a team September 25, 2020 10:08
@rix0rrr rix0rrr self-assigned this Sep 25, 2020
@rix0rrr
Copy link
Contributor Author

rix0rrr commented Sep 25, 2020

(Not ready to be merged yet, needs more tests--specifically around CLI backwards compatibility of still reading tags from old assemblies)

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 25, 2020
import * as path from 'path';

/**
* rm -rf reimplementation, don't want to depend on an NPM package for this
Copy link
Contributor

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?

Copy link
Contributor Author

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

└─┬ rimraf@3.0.2
  └─┬ glob@7.1.6
    ├── fs.realpath@1.0.0
    ├─┬ inflight@1.0.6
    │ ├── once@1.4.0 deduped
    │ └── wrappy@1.0.2
    ├── inherits@2.0.4
    ├─┬ minimatch@3.0.4
    │ └─┬ brace-expansion@1.1.11
    │   ├── balanced-match@1.0.0
    │   └── concat-map@0.0.1
    ├─┬ once@1.4.0
    │ └── wrappy@1.0.2 deduped
    └── path-is-absolute@1.0.1

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@rix0rrr rix0rrr marked this pull request as ready for review September 28, 2020 11:21
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Sep 28, 2020
@rix0rrr rix0rrr removed the pr/do-not-merge This PR should not be merged at this time. label Sep 28, 2020
@mergify
Copy link
Contributor

mergify bot commented Sep 28, 2020

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 4106f9d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Sep 28, 2020

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).

@mergify mergify bot merged commit 97bfd10 into master Sep 28, 2020
@mergify mergify bot deleted the huijbers/pipelines-tags branch September 28, 2020 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cdk-pipelines] stacks cannot be tagged
3 participants