Skip to content

Commit

Permalink
Update restore_sg.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhemm authored Jan 20, 2024
1 parent 62bd847 commit d1ebf9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/postgres-restore/restore_sg.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
}

0 comments on commit d1ebf9a

Please sign in to comment.