Skip to content

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
2
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}."
    }
  ]
}
AWS
EXPERT
answered 3 years ago
EXPERT
reviewed 2 years ago
  • Hi, what about if I'm using admin account? I think it's not needed.

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.

EXPERT
answered 3 years 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.