Skip to content

Example of how to export resource tags as environment variables with CloudFormation

Notifications You must be signed in to change notification settings

sebnyberg/aws-tags-as-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

AWS EC2 Export Tags as Environment Variables

This template exports the resource's tags as environment variables.

In order to create the stack, you need to have aws cli installed and an EC2 keypair available.

Deploy with:

# e.g. ./deploy my-environment-stack my-ec2-keypair-name
sh ./deploy.sh <stack-name> <keypair-name>

Or run the command yourself:

aws cloudformation create-stack --template-body file://template.yml \
                                --stack-name "my-stack-name"
                                --parameters ParameterKey=InstanceKeyNameParameter,ParameterValue=my-ec2-keypair-name
                                --capabilities CAPABILITY_NAMED_IAM

About

Example of how to export resource tags as environment variables with CloudFormation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages