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!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠