From d1ebf9a760934050fade6194654c1f4fe97c6702 Mon Sep 17 00:00:00 2001 From: Andrew Hemming Date: Sat, 20 Jan 2024 18:47:22 +0000 Subject: [PATCH] Update restore_sg.tf --- modules/postgres-restore/restore_sg.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/postgres-restore/restore_sg.tf b/modules/postgres-restore/restore_sg.tf index 2c5dafad..e20d7f47 100644 --- a/modules/postgres-restore/restore_sg.tf +++ b/modules/postgres-restore/restore_sg.tf @@ -1,4 +1,4 @@ -resource "aws_security_group" "migrate_restore_task" { +resource "aws_security_group" "restore_task" { name = "${var.resource_name_prefixes.normal}:PGRESTORE:${upper(var.restore_name)}:ECSTASK:RESTORE" description = "Restore Restore task" vpc_id = var.vpc_id @@ -8,12 +8,12 @@ resource "aws_security_group" "migrate_restore_task" { } } -resource "aws_security_group_rule" "migrate_restore_task_https_out_anywhere" { +resource "aws_security_group_rule" "restore_task_https_out_anywhere" { cidr_blocks = ["0.0.0.0/0"] description = "Allow https out from restore task to anywhere" from_port = 443 protocol = "tcp" - security_group_id = aws_security_group.migrate_restore_task.id + security_group_id = aws_security_group.restore_task.id to_port = 443 type = "egress" }