Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListLayers/ListLayerVersions support Layer ARNs #204

Merged
merged 2 commits into from
Aug 20, 2020
Merged

ListLayers/ListLayerVersions support Layer ARNs #204

merged 2 commits into from
Aug 20, 2020

Conversation

txase
Copy link

@txase txase commented Aug 14, 2020

Description of changes: ListLayers and ListLayerVersions also support Layer ARNs as resources in IAM policies.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alivest
Copy link
Contributor

alivest commented Aug 19, 2020

Hello! What you're seeing in the asterisk is this:
Actions that don't support resource restrictions can only be granted for all resources (*).

Neither ListLayers nor ListLayerVersion can be restricted by Layer ARN.

Thank you for reaching out!

@alivest alivest closed this Aug 19, 2020
@alivest alivest reopened this Aug 19, 2020
This change was inadvertently made.
@txase
Copy link
Author

txase commented Aug 20, 2020

@alivest I double checked and you're right that you can't restrict ListLayers by Layer ARN. But you can restrict ListLayerVersions by Layer ARN. I've updated the PR to reflect this. 🙏

@alivest
Copy link
Contributor

alivest commented Aug 20, 2020

Hello! I've been able to verify this, thank you for double checking. Merging now!

@alivest alivest merged commit c5a6f15 into awsdocs:master Aug 20, 2020
@txase txase deleted the ListLayersArns branch August 21, 2020 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants