Cloudformation S3 Error[Amazon S3; Status Code: 403;]

0

Hello I get this error form My Cloudformation When i try to create resource please help

Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: ZTYE4E05RY3131JS; S3 Extended Request ID: Xgd+99oUXyDQ7kAINIl4xkiBbc3AVU87DgBZktOlBigfgJCzMI7lf2XaE9T0coKbpc8hF7eOHhedR4nk0RWTq2uvRI39SpBPUMQvd5dzjmc=; Proxy: null)

Thank you.

2 Answers
1
Accepted Answer

Does you IAM user have the correct permissions to create an S3 resource? Example below:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1692883010969",
      "Action": [
        "s3:CreateBucket"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::${BucketName}/${KeyName}."
    }
  ]
}
profile pictureAWS
EXPERT
David
answered 8 months ago
1

Hello.
Check the bucket policy of the target S3 bucket to see if "putobject" is denied.
You should also make sure that the required policies are attached to the IAM users and IAM roles you are using.

profile picture
EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions