update GuLogShippingPolicy to bring it's own parameter #137
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.
What does this change?
We've established best practice for accounts/stacks to define the kinesis stream to send logs to to be a SSM Parameter called
/account/services/logging.stream.name
.This updates
GuLogShippingPolicy
to add the parameter to the stack within that construct. The construct is bringing its own resources with it, rather than being passed in as props. This makes it more self contained.This builds on the BYO* pattern introduced in #91.
Does this change require changes to existing projects or CDK CLI?
Yes! The signature of
InstanceRole
has changed to no longer require a stream name, but simply aincludeLogShipping
boolean.How to test
How can we measure success?
Simpler interface to
InstanceRole
and more self contained constructs.Have we considered potential risks?
n/a