Skip to content

Commit

Permalink
Fix refactor.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Oct 12, 2023
1 parent 6d3ab9c commit 6373927
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 10 additions & 0 deletions terraform/environment/refactor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -381,3 +381,13 @@ moved {
from = aws_ssm_parameter.viewer_maintenance_switch
to = module.eu_west_1.aws_ssm_parameter.viewer_maintenance_switch
}

moved {
from = aws_security_group_rule.actor_loadbalancer_ingress_production[0]
to = module.eu_west_1.aws_security_group_rule.actor_loadbalancer_ingress_public_access[0]
}

moved {
from = aws_security_group_rule.viewer_loadbalancer_ingress_public_access[0]
to = module.eu_west_1.aws_security_group_rule.viewer_loadbalancer_ingress_public_access[0]
}
2 changes: 1 addition & 1 deletion terraform/environment/region/actor_load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ resource "aws_security_group_rule" "actor_loadbalancer_ingress" {
provider = aws.region
}

resource "aws_security_group_rule" "actor_loadbalancer_ingress_production" {
resource "aws_security_group_rule" "actor_loadbalancer_ingress_public_access" {
count = var.public_access_enabled ? 1 : 0
description = "Port 443 ingress for production from the internet to the application load balancer"
type = "ingress"
Expand Down
5 changes: 0 additions & 5 deletions terraform/environment/region/viewer_load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ resource "aws_security_group_rule" "viewer_loadbalancer_ingress_public_access" {
provider = aws.region
}

moved {
from = aws_security_group_rule.viewer_loadbalancer_ingress_production[0]
to = aws_security_group_rule.viewer_loadbalancer_ingress_public_access[0]
}

resource "aws_security_group_rule" "viewer_loadbalancer_egress" {
description = "Allow any egress from View service load balancer"
type = "egress"
Expand Down

0 comments on commit 6373927

Please sign in to comment.