Reputation: 170
Is it possible to obtain the AWS user data script that was run when an EC2 instance was built?
I know it's possible via the console, but is it possible to also retrieve the script that was run at the server level?
Thanks
Upvotes: 1
Views: 55
Reputation: 46841
You should be able to retrieve the data like this:
curl http://169.254.169.254/latest/user-data
run this on the instance
Upvotes: 2