-
Notifications
You must be signed in to change notification settings - Fork 398
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
aws_ses_identity: can't unset *_notifications topic #150
Comments
Relevant excerpt from the Amazon Docs:
|
Interested in a fix for this, as I just stumbled upon this defect in my environment. I had to manually remove the topic from my SES config. |
…nsible-collections#150) According to Amazon's documentation [1] the error code returned when no tag set can be found is NoSuchTagSetError rather than NoSuchTagSet and this is how Ceph's S3 implementation behaves. However AWS S3 actually returns NoSuchTagSet. Associated error with Ceph: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: botocore.exceptions.ClientError: An error occurred (NoSuchTagSetError) when calling the GetBucketTagging operation: Unknown fatal: [abc]: FAILED! => changed=false boto3_version: 1.14.49 botocore_version: 1.17.49 error: bucket_name: abc code: NoSuchTagSetError msg: 'Failed to get bucket tags: An error occurred (NoSuchTagSetError) when calling the GetBucketTagging operation: Unknown' response_metadata: host_id: '' http_headers: accept-ranges: bytes content-length: '229' content-type: application/xml date: Thu, 27 Aug 2020 07:11:11 GMT strict-transport-security: max-age=31536000; includeSubDomains x-amz-request-id: tx0000000000000003aaad6-005f475c8f-36fd35b6f-rma1 http_status_code: 404 request_id: tx0000000000000003aaad6-005f475c8f-36fd35b6f-rma1 retry_attempts: 0 [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketTagging.html
ses: fix clearing notification topic SUMMARY Fixes #150. As per the docs, the SnsTopic parameter has to be omitted from the request in order to clear the notification setting. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ses_identity Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell Reviewed-by: Kamil Turek <[email protected]>
SUMMARY
Once a SNS topic is set for a domain's notification, there no known way to remove it.
ISSUE TYPE
COMPONENT NAME
aws_ses_identity
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
I tried any null, empty-string, empty object variations of the below dict:
EXPECTED RESULTS
The existing topic is unset (See
None
in Amazon UI)ACTUAL RESULTS
Failed to set identity notification topic for foo.com Bounce: Parameter validation failed:\nInvalid type for parameter SnsTopic, value: None, type: <class 'NoneType'>, valid types: <class 'str'>"
Failed to set identity notification topic for foo.com Bounce: An error occurred (InvalidParameterValue) when calling the SetIdentityNotificationTopic operation: SNS topic is invalid.
The text was updated successfully, but these errors were encountered: