-
Notifications
You must be signed in to change notification settings - Fork 342
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
s3_bucket -- DigitialOcean Spaces compatibility #390
Comments
Files identified in the description: If these files are inaccurate, please update the |
!component =plugins/modules/s3_bucket.py |
Files identified in the description:
If these files are inaccurate, please update the |
s3_bucket - handle "NotImplemented" for encryption SUMMARY fixes: #390 DigitalOcean doesn't support the encryption settings (and returns a NotImplemented error). Additionally: Slight logic tweak to avoid the line-too-long linting error Avoid importing specific exceptions for consistency with other modules ISSUE TYPE Bugfix Pull Request COMPONENT NAME s3_bucket ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
The fix for this issue should be available when we release version 2.0.0 of the amazon.aws collection. |
thanks @tremble! |
SUMMARY
I'm upgrading from Ansible v2.8 to v4.1. With v2.8, I was able to use
s3_bucket
with DO Spaces -- I just needed to setrequester_pays: null
. Now, with v4.1, it seems there's no way to prevent the module'sget_bucket_encryption
call, and DO Spaces doesn't implement encryption stuff, so the task fails. I tried all of the permitted values forencryption
('none'
,'AES256'
'aws:kms'
), as well as not setting it at all -- it made no difference.See https://github.com/ansible-collections/amazon.aws/blob/main/plugins/modules/s3_bucket.py#L420-L426.
My naive assessment is that the
get_bucket_encryption
call (and its try/except block) would need to be moved into theif encryption is not None
block.ISSUE TYPE
COMPONENT NAME
s3_bucket
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04
STEPS TO REPRODUCE
EXPECTED RESULTS
The task succeeds.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: