alemuro / terraform-aws-ses-email-forwarding

Terraform module that configures Amazon SES to forward emails to an existing email account.
MIT License
10 stars 5 forks source link

InvalidAction: Unavailable Operation #6

Open jimsmith opened 3 years ago

jimsmith commented 3 years ago

After running terraform apply these errors occur:

Terraform v1.0.5
on darwin_amd64
+ provider registry.terraform.io/hashicorp/archive v2.2.0
+ provider registry.terraform.io/hashicorp/aws v3.59.0
╷
│ Error: error creating SES rule set: InvalidAction: Unavailable Operation
│       status code: 400, request id: 154d0985-e613-44ec-b902-4a09714d8467
│ 
│   with module.ses-email-forwarding.aws_ses_receipt_rule_set.fw_rules,
│   on modules/ses-email-forwarding/main.tf line 107, in resource "aws_ses_receipt_rule_set" "fw_rules":
│  107: resource "aws_ses_receipt_rule_set" "fw_rules" {
│ 
╵
╷
│ Error: Error setting active SES rule set: InvalidAction: Unavailable Operation
│       status code: 400, request id: a1b50f0d-4095-487e-9555-bb9fcf83a200
│ 
│   with module.ses-email-forwarding.aws_ses_active_receipt_rule_set.main,
│   on modules/ses-email-forwarding/main.tf line 111, in resource "aws_ses_active_receipt_rule_set" "main":
│  111: resource "aws_ses_active_receipt_rule_set" "main" {
│ 
╵
╷
│ Error: Error creating SES rule: InvalidAction: Unavailable Operation
│       status code: 400, request id: 5a5c6100-dddc-4a54-b097-9052ac307371
│ 
│   with module.ses-email-forwarding.aws_ses_receipt_rule.fw,
│   on modules/ses-email-forwarding/main.tf line 115, in resource "aws_ses_receipt_rule" "fw":
│  115: resource "aws_ses_receipt_rule" "fw" {
kppullin commented 2 years ago

I ran across this while hitting a similar issue (though not using this module). For anyone else finding this in the future, SES email receiving is available in very few regions: https://docs.aws.amazon.com/ses/latest/dg/regions.html#region-receive-email .

The unavailable operation message appears when you try to create rules in an unsupported region.