Create S3 bucket

Create S3 bucket

  1. Access to S3

    • Select Bucket
    • Select Create bucket

CodeDeploy

  1. In the Create bucket interface
  • Bucket name, enter a unique value. Example: codedeploywordpressbucket-2022
  • Select Region.

CodeDeploy

  1. Select Create bucket.

CodeDeploy

  1. Create bucket successfully. Select View details

CodeDeploy

  1. Select Permissions

CodeDeploy

  1. Scroll down to Bucket policy
  • Select Edit

CodeDeploy

  1. Replace the following policy paragraph:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "s3:PutObject"
            ],
            "Effect": "Allow",
            "Resource": "arn:aws:s3:::codedeploydemobucket7749/*",
            "Principal": {
                "AWS": [
                    "111122223333"
                ]
            }
        }
    ]
}
  • Replace your Resource ARN.
  • Change your Account ID.
  • Select Save changes

CodeDeploy

  1. Complete the bucket policy configuration.

CodeDeploy