-
Notifications
You must be signed in to change notification settings - Fork 397
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
add KmsMasterKeyId
as attribute option for boto3 call
#762
add KmsMasterKeyId
as attribute option for boto3 call
#762
Conversation
KmsMasterKeyId
into boto3 call
KmsMasterKeyId
into boto3 callKmsMasterKeyId
as attribute option for boto3 call
KmsMasterKeyId
as attribute option for boto3 callKmsMasterKeyId
as attribute option for boto3 call
0dccc9f
to
2ef71f6
Compare
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.
Thanks @falcon78921, couple of minor comments
@falcon78921 This PR contains |
9f45b44
to
8326ec8
Compare
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.
Thanks for taking the time to open this PR. A couple of minor niggles that I'll commit, if the tests still pass I think we can get this merged.
- name: Test queue features | ||
block: | ||
- name: Test create queue with attributes | ||
sqs_queue: | ||
name: "{{ resource_prefix }}{{ 1000 | random }}" | ||
default_visibility_timeout: 900 | ||
delivery_delay: 900 | ||
# Test SSE encryption |
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.
# Test SSE encryption |
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.
Thanks for the feedback @tremble. I just noticed that the comment should be Test SSE
, but you don't want any comments around test tasks?
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.
Generally the test description like this would be in the name block up top. having it listed here doesn't bring much value, we already know what that parameter is supposed to do.
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.
we already know what that parameter is supposed to do.
Although kms_master_key_id
involves encryption, I didn't know specifying kms_master_key_id
automatically turned it on. I was thinking there was a separate encryption
key that corresponded with a boolean value. The boto3 docs don't really jump out and say it either (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs.html#SQS.Client.create_queue), unless I missed something. If you don't want a mention in the tests, do you think adding something in the module docs would help clarify?
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.
As someone using this feature, if you think the docs need a tweak to help folks understand what's going on then most certainly update them.
Only the docs at the top of the Python file need to be updated. The RST is auto-generated from them.
Ok, you didn't tick the box to allow maintainers to update the PR so I can't commit them. |
thanks again @tremble 👍 |
In the interests of getting this PR merged, I'm going to gate this one too. :) Further tweaks to the documentation to help make it easier to use would most certainly be welcome. |
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.
LGTM!
aws_s3 - ensure overwrite: different SUMMARY aws_s3 - ensure overwrite: different instead of always in order for the module to be idempotent by default. Fixes: ansible-collections#762 ISSUE TYPE Feature Pull Request COMPONENT NAME aws_s3 Reviewed-by: Jill R <None> Reviewed-by: Mark Chappell <None>
SUMMARY
When creating a SQS queue, passing a value for
KmsMasterKeyId
does not enable SSE. This PR fixes how attributes, likeKmsMasterKeyId
, are passed into the boto3 invocation.Fixes: #698
ISSUE TYPE
COMPONENT NAME
sqs_queue.py