Document creating stacker bucket with CloudFormation.#571
Open
Document creating stacker bucket with CloudFormation.#571
Conversation
Contributor
Author
|
Hey @troyready / @GarisonLotus. This is a slightly more generalized version of what we do internally. Eventually, I'd like to support automating this more in the config, like I talk about in #497 (comment), but it's probably worth documenting that his method can be used already. |
phobologic
approved these changes
Apr 8, 2018
| ServerSideEncryptionConfiguration=[aes])) | ||
|
|
||
| def create_template(self): | ||
| self.template.add_resource(self.bucket) |
Member
There was a problem hiding this comment.
Should probably have the bucket name as an output.
| @@ -0,0 +1,33 @@ | |||
| from stacker.blueprints.base import Blueprint | |||
|
|
|||
| from troposphere import Ref | |||
Member
There was a problem hiding this comment.
I'd replace Ref with NoValue and just use that later, since that's the only use of Ref.
| an existing bucket in a different region, you can set the | ||
| **stacker_bucket_region** to the region where you want to create the bucket. | ||
|
|
||
| Alternatively, if you'd like to have more control over creation of the stacker |
Member
There was a problem hiding this comment.
Maybe mention that if they want more control over creation of the bucket, they can use the Bucket blueprint from stacker_blueprints as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As talked about in #497 (comment), this documents how more advanced stacker users might setup a stacker bucket, when they want more control over creation of the bucket (e.g. tags, default encryption, bucket policies, created in a specific AWS account or region, etc).