IAM Role for S3, RDS, and CloudWatch
The VPC is ready, the S3 bucket is ready, the RDS instance is ready -- but our app doesn't have permission to access these things.
In this part, we're going to setup the IAM role that our application will use. We will need to include permissions to:
- Read and write objects to the S3 bucket
- Query the RDS database
- Write logs to cloudwatch
Role
step 1:
step 2:
step 3:
step 4:
step 5:
We will add permissions for RDS and S3 in a moment, it's just really easy to attach the pre made CloudWatchAgentServer policy while setting up the role.