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

feat(pipeline): allow enabling KMS key rotation for cross-region Stacks #16468

Merged
merged 48 commits into from
Sep 20, 2021

Conversation

pboeder
Copy link
Contributor

@pboeder pboeder commented Sep 13, 2021

As suggested by @skinny85 I created an updated PR as successor of #14381

How does it work for v2. Do I need to create another PR for v2-main?


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

@gitpod-io
Copy link

gitpod-io bot commented Sep 13, 2021

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @ppuritscher!

Like I said in the previous Pull Request (#14381 (comment)), we should strive to minimize the changes to existing templates, and so we should not default enableKeyRotation to false; instead, we should leave it as undefined if it was not provided. This will have the consequence of not having to change all of the integration test files that you have currently changed in the PR (you'll be able to revert those changes).

Other than that, the changes look good!

@mergify mergify bot dismissed skinny85’s stale review September 14, 2021 06:53

Pull request has been modified.

@pboeder
Copy link
Contributor Author

pboeder commented Sep 14, 2021

@skinny85 overread that. Fixed, thanks for the feedback!

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @ppuritscher, but I still want to see a few changes before this is merged in 🙂.

@mergify mergify bot dismissed skinny85’s stale review September 15, 2021 07:30

Pull request has been modified.

@pboeder
Copy link
Contributor Author

pboeder commented Sep 15, 2021

Makes sense, thanks @skinny85!

@mergify mergify bot dismissed skinny85’s stale review September 16, 2021 07:10

Pull request has been modified.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ppuritscher I think we're not understanding each other, so I'll try to spell out what I want to see here as clearly as I can 🙂.

Please revert all changes to the file packages/@aws-cdk/aws-codepipeline/README.md besides the one paragraph that talks about the new property.

If it's still unclear how to do it:

  1. Open the file packages/@aws-cdk/aws-codepipeline/README.md in your editor.
  2. Cut out the following paragraph:
If you want to enable key rotation for the generated KMS keys,
you can configure it by passing `enableKeyRotation: true` when creating the pipeline.
Note that key rotation will incur an additional cost of **$1/month**.

```ts
const pipeline = new codepipeline.Pipeline(this, 'MyFirstPipeline', {
  // ...
  enableKeyRotation: true,
});
```
  1. Execute the following command in the root of the project:
$ git checkout origin/master -- packages/@aws-cdk/aws-codepipeline/README.md

This will discard all changes to that file.

  1. Copy back the paragraph you cut out in step 2 into the same place you cut it from in the packages/@aws-cdk/aws-codepipeline/README.md file.
  2. Commit the result, & push to your fork to update the PR.

Hope this is clear now!

Thanks,
Adam

@pboeder
Copy link
Contributor Author

pboeder commented Sep 16, 2021

Hi @skinny85 !

You're right, sorry. Was only looking on the diffs your commenting on.
Also helps disable any plugins in vscode...

Patrick

@pboeder
Copy link
Contributor Author

pboeder commented Sep 16, 2021

Yep. Messed up the rebase. Will fix and get back to you.

@pboeder pboeder changed the base branch from master to v2-main September 16, 2021 18:06
@pboeder pboeder changed the base branch from v2-main to master September 16, 2021 18:06
@skinny85 skinny85 changed the title feat(pipeline): allow enabling KMS key rotation for cross-region-stacks feat(pipeline): allow enabling KMS key rotation for cross-region Stacks Sep 20, 2021
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @ppuritscher, thanks for the contribution!

@mergify
Copy link
Contributor

mergify bot commented Sep 20, 2021

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

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Sep 20, 2021

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: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 3bf5dd1
  • 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 2a629dd into aws:master Sep 20, 2021
@mergify
Copy link
Contributor

mergify bot commented Sep 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants