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" }