-
Notifications
You must be signed in to change notification settings - Fork 403
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
ecs_ecr -- Return repository policy if it exists, even if we did not … #1171
ecs_ecr -- Return repository policy if it exists, even if we did not … #1171
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okey with that change. An ecs_ecr_info
module would be also helpful in the future.
If an iam policy should also be transformed to snake_dict, must be discussed first.
Otherwise it LGTM. Just a changelog fragment is missing.
@karcadia this PR contains the following merge commits: Please rebase your branch to remove these commits. |
@karcadia this PR contains the following merge commits: Please rebase your branch to remove these commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to clear the needs_revision tag.
The changelog fragment has been added.
I accepted the change for the added in version 4.0.
There was a discussion around casing but I didn't see a specific action item so should be ready for review. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karcadia Thank you. LGTM!
…create or modify it. Return repository policy if it exists, even if we did not create or modify it.
Co-authored-by: Markus Bergholz <git@osuv.de>
Co-authored-by: Alina Buzachis <abuzachis@redhat.com>
I(state=present) I(state=absent) The i is for italics.
Return repository policy if it exists, even if we did not create or modify it.
SUMMARY
Existing behavior will only print the ECR repo (permissions) policy if we just created/edited that policy. There is no way to just pull the existing policy and use it in a subsequent task.
New behavior will print the existing ECR repo policy information if it exists, even if we did not just create/edit that policy.
ISSUE TYPE
COMPONENT NAME
ecs_ecr -- run function
ADDITIONAL INFORMATION
Given the scenario that my ECR repo already exists and already has a permissions policy on it. I would like to use ansible to retrieve that policy.
Today this module will only return the policy as part of the return object if we are telling the module to create or edit the policy.
After merging, the module will create the policy if it was defined, or update the policy if needed, and if neither of those were defined (else) we will check for an existing permissions policy and add it to the return object.