Skip to content

Commit 5ac84ee

Browse files
authored
fix: Add an explicit dependency between task and endpoint security groups. (#49)
This resolves an issue where the dependency wasn't properly inferred, and OpenTofu could try to destroy the dependency before creating another and updating the dependent.
1 parent 003951b commit 5ac84ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ module "endpoint_security_group" {
8989
module "task_security_group" {
9090
source = "terraform-aws-modules/security-group/aws"
9191
version = "~> 5.1"
92+
depends_on = [module.endpoint_security_group.security_group_id]
9293

9394
name = "${local.prefix}-endpoint"
9495
vpc_id = var.vpc_id

0 commit comments

Comments
 (0)