In my first post, IAM Roles in AWS you created an ec2 instance and directly accessed a restricted S3 bucket. Today, you’ll create a Java application, which will use an ec2 role to access the same restricted s3 bucket. Here’s what you’re going to do: Create a simple Java application Create an S3 bucket Create a customer managed policy Create an IAM role, using the customer managed policy, to manage access to the S3 bucket
Using IAM Roles to Control Access I don’t know about you but when I first started working in the cloud, I thought of it as an on-prem solution in AWS. By on-prem solution in AWS, I mean I thought about solutions in AWS the same way I’d solve problems in our on-prem data center. Over the next few posts, I’m going to talk about making the transition from on-prem designs to cloud-native or cloud-first designs.