Ravi Sir's Cards › AWS
Attach role to EC2
What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.
Read card text
What this card says
Why do we need it?
Putting AKIA keys on the instance is how keys leak into GitHub.
What is it?
Create an EC2 instance profile/role with your S3 read policy; attach to the instance; use the instance metadata credentials automatically via AWS CLI.
instance profile
How to do it
IAM role trusted by ec2.amazonaws.com → attach policy → Modify IAM role on the instance (or launch with it).
Example
On the instance: aws s3 cp s3://lab-bucket/hi.txt - works with no keys configured.