diff --git a/.gitea/workflows/modules-lifecycle.yml b/.gitea/workflows/modules-lifecycle.yml index ce797b8..e454464 100644 --- a/.gitea/workflows/modules-lifecycle.yml +++ b/.gitea/workflows/modules-lifecycle.yml @@ -47,7 +47,13 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | terraform init -input=false -lock=false - terraform apply -auto-approve -lock=false + terraform apply -auto-approve -lock=false \ + -target=aws_vpc.acdl_shared \ + -target=aws_subnet.acdl_shared \ + -target=aws_internet_gateway.acdl_shared \ + -target=aws_route_table.acdl_shared \ + -target=aws_route_table_association.acdl_shared \ + -target=aws_security_group.ecs # L1 lifecycle matrix: apply simple → apply complex (modify) → destroy lifecycle: @@ -113,4 +119,10 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | terraform init -input=false -lock=false - terraform destroy -auto-approve -lock=false \ No newline at end of file + terraform destroy -auto-approve -lock=false \ + -target=aws_vpc.acdl_shared \ + -target=aws_subnet.acdl_shared \ + -target=aws_internet_gateway.acdl_shared \ + -target=aws_route_table.acdl_shared \ + -target=aws_route_table_association.acdl_shared \ + -target=aws_security_group.ecs \ No newline at end of file diff --git a/.github/workflows/modules-lifecycle.yml b/.github/workflows/modules-lifecycle.yml index ce797b8..e454464 100644 --- a/.github/workflows/modules-lifecycle.yml +++ b/.github/workflows/modules-lifecycle.yml @@ -47,7 +47,13 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | terraform init -input=false -lock=false - terraform apply -auto-approve -lock=false + terraform apply -auto-approve -lock=false \ + -target=aws_vpc.acdl_shared \ + -target=aws_subnet.acdl_shared \ + -target=aws_internet_gateway.acdl_shared \ + -target=aws_route_table.acdl_shared \ + -target=aws_route_table_association.acdl_shared \ + -target=aws_security_group.ecs # L1 lifecycle matrix: apply simple → apply complex (modify) → destroy lifecycle: @@ -113,4 +119,10 @@ jobs: AWS_DEFAULT_REGION: us-east-1 run: | terraform init -input=false -lock=false - terraform destroy -auto-approve -lock=false \ No newline at end of file + terraform destroy -auto-approve -lock=false \ + -target=aws_vpc.acdl_shared \ + -target=aws_subnet.acdl_shared \ + -target=aws_internet_gateway.acdl_shared \ + -target=aws_route_table.acdl_shared \ + -target=aws_route_table_association.acdl_shared \ + -target=aws_security_group.ecs \ No newline at end of file