How do I create a s3 bucket, IAM user with full access to S3 and how do I pass the users credentials to my application?

StackOverflow https://stackoverflow.com/questions/7392426

Question

I am using Amazon cloudformation template https://s3.amazonaws.com/cloudformation-templates-us-east-1/PHPHelloWorld.template to setup my application. I need to create a S3 bucket and a IAM user with full access to S3. My PHP application would need the credentials of the user created to upload files to s3.

How do I create a s3 bucket, IAM user with full access to S3 and how do I pass the users credentials to my application ?

Also I have to install the Amazon PHP SDK and some softwares, what are the entries I need to add to the UserData section of PHPHelloWorld.template

Thank you

Was it helpful?

Solution

The example template list contains a template for giving an IAM user full access.

Somewhat counter-intuitively you don't set any properties on the S3 bucket, it's either on an S3 bucket policy, or the IAM user.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top