Skip to content

a cloudformation custom-resource to define and refer to dynamic variables within the cloudformation stack lifecycle

Notifications You must be signed in to change notification settings

JayWebDevCom/cfn-variable-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

cfn-variable-repository

  • cloudformation templates do not support variables and parameters in a template cannot reference other parameters

  • cfn-variable-repository is a cloudformation custom-resource to define and refer to dynamic variables within the cloudformation stack lifecycle

  • define your variables in the CfnVariableRepository.Repository, call them CfnVariableRepository.<VariableName> as many times as you need

  • see implementation example

  • do not use for secrets or sensitive data

deployment

  • deploy cfn-variable-repository
aws cloudformation deploy --template-file ./template.yaml --stack-name variable-repository --capabilities CAPABILITY_NAMED_IAM
  • implement and use a cfn-variable-repository
aws cloudformation deploy --template-file ./template-implementation.yaml --stack-name variable-repository-implementation --capabilities CAPABILITY_NAMED_IAM
  • debug
aws logs tail "/aws/lambda/cfn-variable-repository" --follow
aws cloudformation describe-stacks --stack-name variable-repository-implementation
aws cloudformation describe-stacks --stack-name variable-repository-implementation --query 'Stacks[*].Outputs[*]'
  • delete a stack
aws cloudformation delete-stack --stack-name variable-repository-implementation

About

a cloudformation custom-resource to define and refer to dynamic variables within the cloudformation stack lifecycle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published