An application running on an Amazon EC2 instance needs to access an Amazon S3 bucket to read and write files. However, you do not want to hardcode the AWS access key and secret access key in the EC2 instance.
Check out my blog for details: https://blog.bhuvanpati.com/scenario-...
FREE AWS IAM Bootcamp: https://iam.bhuvanpati.com/