Support passing local paths to nested CloudFormation stacks #6961
Labels
cloudformation package-deploy
community
customization
Issues related to CLI customizations (located in /awscli/customizations)
feature-request
A feature should be added or improved.
p3
This is a minor priority issue
Describe the feature
The idea is to map references in nested stacks to parameters passed in from its parent stack. The reference is parsed and replaced with the parameter's value (if the value is not dependent on a deploy time parameter) before the
package
command exports the resource's artifact to S3.Example:
The command maps the parameter
SwaggerDoc
inapi-template.yaml
to the parameter value passed in frompackage.yaml
(/path/to/swagger.yaml
) before iterating over the resources. When it comes to theBodyS3Location
property ofMyFunction
it will replace the!Ref SwaggerDoc
with the value/path/to/swagger.yaml
, then export that file to S3.This feature also converts any relative paths to absolute paths by merging with the calling template's parent directory's path.
Example:
./swagger.yaml
would become/absolute/path/to/swagger.yaml
This only affects the the specific properties of resources specified here. Any properties not specified in the previous link are not affected.
This is helpful for keeping things DRY when composing multiple connected local templates.
Use Case
I want nested stacks to be able to reference parameters passed in from their parent stack. This makes it easy to compose CloudFormation templates by connecting multiple local templates.
Proposed Solution
#2344
Other Information
No response
Acknowledgements
CLI version used
any
Environment details (OS name and version, etc.)
any
The text was updated successfully, but these errors were encountered: