How to set an environment variable in Amazon EC2

前端 未结 5 929
一整个雨季
一整个雨季 2020-12-23 14:23

I created a tag on the AWS console for one of my EC2 instances.

\"enter

Howeve

5条回答
  •  死守一世寂寞
    2020-12-23 14:38

    Following the instructions given by Guy, I wrote a small shell script. This script uses AWS CLI and jq. It lets you import your AWS instance and AMI tags as shell environment variables.

    I hope it can help a few people.

    https://github.com/12moons/ec2-tags-env

提交回复
热议问题