Skip to content

Commit

Permalink
Change name of smtp_sesans
Browse files Browse the repository at this point in the history
  • Loading branch information
vc13837 committed Jan 16, 2025
1 parent 8aaf33d commit 27a8f66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions terraform/environments/laa-mail-relay/ses.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ resource "aws_secretsmanager_secret_version" "smtp_password" {
secret_string = aws_iam_access_key.smtp.ses_smtp_password_v4
}

# resource "aws_secretsmanager_secret" "smtp_sesans" {
# name = "postfix/app/SESANS"
# description = "Secret to pull from Ansible code from https://github.com/ministryofjustice/laa-aws-postfix-smtp"
# tags = merge(
# local.tags,
# { "Name" = "postfix/app/SESANS" }
# )
# }
resource "aws_secretsmanager_secret" "smtp_sesans" {
name = "postfix/app/SESANS_MP"
description = "Secret to pull from Ansible code from https://github.com/ministryofjustice/laa-aws-postfix-smtp"
tags = merge(
local.tags,
{ "Name" = "postfix/app/SESANS_MP" }
)
}

resource "aws_secretsmanager_secret" "smtp_sesrsap" {
name = "postfix/app/SESRSAP"
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/laa-mail-relay/smtp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mkdir -p /root/ansible
echo "Getting secrets from Secrets Manager"
export SESP=`/usr/local/bin/aws --region eu-west-2 secretsmanager get-secret-value --secret-id postfix/app/APP_DATA_MIGRATION_SMTP_PASSWORD --query SecretString --output text`
export SESU=`/usr/local/bin/aws --region eu-west-2 secretsmanager get-secret-value --secret-id postfix/app/APP_DATA_MIGRATION_SMTP_USER --query SecretString --output text`
export SESANS=`/usr/local/bin/aws --region eu-west-2 secretsmanager get-secret-value --secret-id postfix/app/SESANS --query SecretString --output text`
export SESANS=`/usr/local/bin/aws --region eu-west-2 secretsmanager get-secret-value --secret-id postfix/app/SESANS_MP --query SecretString --output text`
# mkdir -p /run/cfn-init # Path to store cfn-init scripts
echo "Running Ansible Pull"
Expand Down

0 comments on commit 27a8f66

Please sign in to comment.