awsdocs / iam-user-guide

Official documentation source for the AWS Identity and Access Management (IAM) User Guide
MIT No Attribution
324 stars 355 forks source link

Document constraints on Sid grammar #282

Closed sourcefrog closed 1 year ago

sourcefrog commented 1 year ago

According to

aws accessanalyzer validate-policy --policy-document policy.json --policy-type SERVICE_CONTROL_POLICY

the Sid can only have characters [a-z, A-Z, 0-9].

At any rate a Sid containing underscores is rejected by the API.

It would be nice if the correct constraints were in https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_id.html.

Thank you @ransford!

ljquin commented 1 year ago

Hello @sourcefrog ,

The issue description mentions Sid but the provided link is for policy element Id. These are two different policy elements, Sid and Id.

Can you clarify if you're referring to the Sid or Id policy element?

Reference links: