2 ms·
If you are on the EC2 instance where you can do ps, you can already access the secret key and access key by just doing: curl http://169.254.169.254/latest/me
by scarface74 7y ago
If you are on the EC2 instance where you can do ps, you can already access the secret key and access key by just doing:
curl http://169.254.169.254/latest/meta-data/iam/security-credentials
But of course, you still shouldn't specify them in your code.