Thursday, 16 January 2020

AWS Want to access S3 bucket from EC2 instance without IAM user policy

With out IAM User role or without aws configure.
how can we access the other trusted services of AWS from other trusted services.
This is important when you do aws configure we need to provide user personal (
AWS Access Key ID 
AWS Secret Access Key )
as like  < https://oracletechdba.blogspot.com/2020/01/configure-aws-cli-with-access-key-id.html

Which is high security risk.
So for that we can make the trust relationship as below.

Eg: Want to access s3 bucket from EC2 instance without IAM user policy.

+Step1:Create role with policy for EC2 instance to access S3

+Step2:Attach role to the EC2
+Step3:Try access using Code or AWS API or AWS CLI

Step1: < https://oracletechdba.blogspot.com/2020/01/create-role-with-policy-for-ec2.html >
Step2:< https://oracletechdba.blogspot.com/2020/01/grant-access-to-s3-bucket-for-ec2-aws.html >
Step3:<https://oracletechdba.blogspot.com/2020/01/aws-test-s3-access-to-ec2-instance.html>

No comments: