-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Enhancement]: Disable account level suppression list in configuration set for SESv2. #38207
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
This probably requires a new Terraform resource, since account-level suppression list is a separate entity from configuration sets. Perhaps we need an However, there is already a precedence with VDM implemented as a separate Terraform resource, so i am not sure what the best option would be. |
I don't think this needs a new resource because according to https://docs.aws.amazon.com/ses/latest/dg/sending-email-suppression-list-config-level.html you should be able to disable using the account suppression list for a specific configuration set. I was confused by awscli because it has the following behavior:
However, boto3 allows you to create a suppression list with empty suppression options:
When I look at the details page of the configuration set created by boto3 in the SES console, it says that the suppression list is disabled for this configuration set. Based on this, I would expect the terraform resource to accept an empty list for the suppressed_reasons and that would disable use of the account suppression list for the created configuration set. |
@nick-durcholz-vectorsolutions ,
In short, you need to use the "cli-input" field so you cna pass in an empty list similar to the boto3 command |
We may use the following work around until this is resolved resource "aws_sesv2_configuration_set" "this" {
configuration_set_name = local.config_set_name
}
resource "null_resource" "sesv2_suppression_options" {
provisioner "local-exec" {
command = "aws sesv2 put-configuration-set-suppression-options --configuration-set-name \"${aws_sesv2_configuration_set.this.configuration_set_name}\" --cli-input-json '{\"SuppressedReasons\": []}'"
}
# run this command every time the module is applied
triggers = {
always_run = "${timestamp()}"
}
} |
Seems like this is fixed as of #29671 |
Description
I tried to disable the suppression lists that are enabled at the account level when sending from a specific email address, but I could not find such an option.
I tried putting an empty array or an empty character array in suppressed_reasons, but both resulted in an error.
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: