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.

demandé il y a 2 ans343 vues
1 réponse
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.

répondu il y a 2 ans
  • That's a really helpful workaround. Thanks for that!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions