amazon web services - AWS S3 Bucket Accessible from my ElasticBeanStalk Instance only -
i have 1 s3 bucket, 1 elasticbeanstalk instance. currenly s3bucket made public hence accessible domain, localhost. want s3 bucket resources should accessible ebs instance app hosted/running. app should able view these resources , upload new images/resources bucket . sure myt have done this.
controlling access s3 has several ways. best practice make privately accessible is: not give rights access s3 buckets/files in bucket policy.
however should create iam role has either full access s3, or limited access actions, buckets.
for every ec2 instances , every elastic beanstalk environments, can attache iam role. role automatically served instances via instance metadata. safe way give special rights instances.
(note: aws security best practice, since aws deal key rotations on ec2 boxes.)
Comments
Post a Comment