Spike
Spike

Reputation: 170

AWS User Data on built server

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

Answers (1)

E.J. Brennan
E.J. Brennan

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

Related Questions