Create S3 bucket

  1. Access S3

    • Select Buckets
    • Select Create bucket

CodeDeploy

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

CodeDeploy

  1. Select Create bucket.

CodeDeploy

  1. Bucket created successfully.

CodeDeploy

  1. Select Permissions

CodeDeploy

  1. Scroll down to Bucket policy
  • Select Edit

CodeDeploy

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

CodeDeploy

  1. Successfully configured the bucket policy.

CodeDeploy