This PR allows the name of a bucket to optionally be fetched from the stack output. This is helpful when the name of the bucket is not known before the stack is created. In such cases the user can now write the name of the bucket as an Output value and provide the Output key as a bucketNameKey property.
This PR allows the name of a bucket to optionally be fetched from the stack output. This is helpful when the name of the bucket is not known before the stack is created. In such cases the user can now write the name of the bucket as an Output value and provide the Output key as a
bucketNameKey
property.This fixes issue #6.
The implementation is inspired from the serverless-cloudfront-invalidate plugin which does something very similar.
NOTE: Most of these changes are whitespace/indentation so in the diff view you might choose Diff Settings -> Hide whitespace changes.