-
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-cloudtrail): stack not updated to single-region #17179
Comments
Another thing:
|
If BPA is this what you mean then while it would indeed result in the desired behaviour, I don't think that's actually a solution for CDK. I would even say that turning on BPA is not recommended when using CDK because then CDK does not reflect the actual configuration since:
I did not add any tags and I should not add any.
but they are not there (or they are not visible in the UI) for the created CloudTrail. |
I don't disagree with you, I'm just saying practically that you can achieve the same effect today if you must. BPA on a per-bucket basis can and should probably be implemented as an Aspect. We don't have this available readily, but you can implement it yourself. Bucket deletion cannot be implemented as an Aspect, but would be covered by this: aws/aws-cdk-rfcs#25. In the mean time, you are going to have to create a bucket that is configured for proper cleanup yourself and pass it to the trail, rather than rely on the automatically created bucket. In the same way you can set up BPA for the one bucket, rather than implement it as an Aspect. Tags are an implementation detail of CloudFormation. I do not know why CloudFormation is not tagging the trail appropriately, but unfortunately we can not do anything about that. Get in touch with CloudFormation to report this to them: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap I cannot reproduce the original issue around I don't think there's anything actionable for us in this issue that is not covered elsewhere, right? And if you want to open a feature request for a BPA Aspect, I feel that should be a separate issue. Are you alright with me closing this one out? |
Got it, so:
Thanks for feedback, feel free to close it for now. |
|
What is the problem?
Creating Cloud Trail with default options results in a multi-region trail. Changing the options to single region does not have any effect.
Workaround:
Reproduction Steps
Create Trail with:
and deploy.
Then update the CDK to:
and check
cdk diff
, it will report no diff.What did you expect to happen?
Trail to be changed to single-region by replacement or options change.
What actually happened?
Nothing.
CDK CLI Version
1.129.0
Framework Version
No response
Node.js Version
12
OS
MacOS
Language
Typescript
Language Version
4.0
Other information
No response
The text was updated successfully, but these errors were encountered: