Skip to content

Commit

Permalink
Update the ami to differentiate DMZ/LZ
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Jan 30, 2025
1 parent ae78d8e commit 20e1bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ resource "aws_iam_role_policy" "sqs_send_message_policy" {

resource "aws_instance" "db_accessor" {
count = var.create_db_accessor_instance ? 1 : 0
ami = var.ami_id
ami = var.is_dmz ? data.aws_ami.ubuntu.id : var.ami_id
instance_type = var.db_accessor_instance_class
associate_public_ip_address = false

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/email-sender.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "aws_iam_policy_attachment" "email_sender_ec2_policy_2" {
# EC2 Instance for SES
resource "aws_instance" "email_sender" {
count = var.create_email_sender_instance ? 1 : 0
ami = var.ami_id
ami = var.is_dmz ? data.aws_ami.ubuntu.id : var.ami_id
instance_type = var.email_sender_instance_type
associate_public_ip_address = false

Expand Down

0 comments on commit 20e1bce

Please sign in to comment.