Skip to content

Commit

Permalink
Merge pull request #54 from FloRul/hotfix/chat-rule-recipient
Browse files Browse the repository at this point in the history
Fix the chat rule recipient
  • Loading branch information
FloRul authored Feb 29, 2024
2 parents 015119f + 53fb6ee commit 44f917c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

3 changes: 1 addition & 2 deletions terraform/ses.tf
Original file line number Diff line number Diff line change
@@ -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"
}
Expand All @@ -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

Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ variable "api_gateway_stage_name" {
variable "sender_email" {
type = string
nullable = false
}

variable "chat_rule_recipient" {
type = string
nullable = false
}

0 comments on commit 44f917c

Please sign in to comment.