AWS Policy Generator bug for S3 - ARN flagged invalid despite not being

0

Hi there,

I'm trying to create an s3 bucket policy using the AWS policy generator found here https://awspolicygen.s3.amazonaws.com/policygen.html and I'm running in to what looks like a bug when entering the ARN of my bucket. I'm getting a message saying 'Resource field is not valid. You must enter a valid ARN.', despite my ARN being correctly formatted and valid (doesn't work either typing it or copying it from the AWS console). Has anyone found a solution to this? I know I could write the JSON myself, but I wanted to flag this issue. I noticed this question was also asked here, but the issue still persists https://repost.aws/questions/QUjnr5ei9VQm-YpIle6R4UrQ/why-my-s-3-policy-generator-dosent-work

Thanks.

已提問 2 年前檢視次數 343 次
1 個回答
1

Hi,

I understand that you are having an error with creating an s3 bucket policy using the AWS policy generator. I did replicate and received the same error.

As a workaround:

I inserted a * in the ARN section and generated the policy.

I, thereafter, replaced the * with my ARN once it has been generated.

Please find the attached ARN Format documentation[1].

I hope this helps

Resources:-

[1] https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html.

已回答 2 年前
  • That's a really helpful workaround. Thanks for that!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南