amazon web services - EC2 Grab and save data on auto scaling group -


how can make fresh ec2 instance booted auto scaling group grab , save sensitive .env data such db credentials, encryption keys etc'?

you can configure in user data settings when creating new instance. check screenshot below.

you can add curl command there. thing this.

curl -o <directory need copy>/* https://s3.amazonaws.com/bucket-name/test.dev 

enter image description here


Comments