diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e7d28cb..c6243b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,6 +111,7 @@ jobs: -var="email_request_preprocessor_lambda_repository_name=${{ vars.EMAIL_REQUEST_PREPROCESSOR_ECR_NAME }}" \ -var="email_response_processor_lambda_repository_name=${{ vars.EMAIL_RESPONSE_PROCESSOR_ECR_NAME }}" \ -var="sender_email=${{ vars.SENDER_EMAIL }}" \ + -var="chat_rule_recipient=${{ vars.CHAT_RULE_RECIPIENT }}" \ -no-color -out=terraform.tfplan - name: Upload Terraform Plan @@ -234,6 +235,7 @@ jobs: -var="email_request_preprocessor_lambda_repository_name=${{ vars.EMAIL_REQUEST_PREPROCESSOR_ECR_NAME }}" \ -var="email_response_processor_lambda_repository_name=${{ vars.EMAIL_RESPONSE_PROCESSOR_ECR_NAME }}" \ -var="sender_email=${{ vars.SENDER_EMAIL }}" \ + -var="chat_rule_recipient=${{ vars.CHAT_RULE_RECIPIENT }}" \ -auto-approve -no-color -input=false diff --git a/terraform/ses.tf b/terraform/ses.tf index 6d8c1ff..84f7a52 100644 --- a/terraform/ses.tf +++ b/terraform/ses.tf @@ -1,7 +1,6 @@ locals { rule_set_name = "levio-demo-fev-esta-rule-set-dev" chat_rule_name = "levio-demo-fev-esta-chat-rule-dev" - chat_rule_recipient = "levio-demo-fev-esta-chat-rule-recipient-dev" chat_key_prefix = "chat" bucket_name = "levio-demo-fev-esta-ses-bucket-dev" } @@ -17,7 +16,7 @@ resource "aws_ses_active_receipt_rule_set" "active_main_rule_set" { resource "aws_ses_receipt_rule" "chat_rule" { name = local.chat_rule_name rule_set_name = aws_ses_receipt_rule_set.main_rule_set.rule_set_name - recipients = [local.chat_rule_recipient] + recipients = [var.chat_rule_recipient] enabled = true scan_enabled = true diff --git a/terraform/variables.tf b/terraform/variables.tf index 85cf9c3..ff60d0d 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -65,4 +65,9 @@ variable "api_gateway_stage_name" { variable "sender_email" { type = string nullable = false +} + +variable "chat_rule_recipient" { + type = string + nullable = false } \ No newline at end of file