diff options
author | Tomas Alexy <tomas.alexy@pantheon.tech> | 2021-02-19 10:10:18 +0100 |
---|---|---|
committer | Tomas Alexy <tomas.alexy@pantheon.tech> | 2021-02-19 10:10:18 +0100 |
commit | af004a02459ad2379c65b18cf41aa970e2d91b4d (patch) | |
tree | e32941d7ce88fd0ce9120f7a1c50caee2616eabd /terraform-ci-infra/2n_aws_c5n | |
parent | a678231f39f4d4ea079018e7d11be36d0cc454d2 (diff) |
Infra: AWS deployment - minor fixes
Bump aws provider to 3.28
Code readability improvements
Signed-off-by: Tomas Alexy <tomas.alexy@pantheon.tech>
Change-Id: Iaa966f2795f228e31e90acf27ca9999a730a87f0
Diffstat (limited to 'terraform-ci-infra/2n_aws_c5n')
-rw-r--r-- | terraform-ci-infra/2n_aws_c5n/deploy/main.tf | 4 | ||||
-rw-r--r-- | terraform-ci-infra/2n_aws_c5n/deploy/versions.tf | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/terraform-ci-infra/2n_aws_c5n/deploy/main.tf b/terraform-ci-infra/2n_aws_c5n/deploy/main.tf index 7fe815188e..8595f9f270 100644 --- a/terraform-ci-infra/2n_aws_c5n/deploy/main.tf +++ b/terraform-ci-infra/2n_aws_c5n/deploy/main.tf @@ -218,6 +218,7 @@ data "aws_network_interface" "tg_if2" { # Instances resource "aws_instance" "tg" { + depends_on = [aws_vpc.CSITVPC, aws_placement_group.CSITPG] ami = var.ami_image availability_zone = var.avail_zone instance_type = var.instance_type @@ -228,7 +229,6 @@ resource "aws_instance" "tg" { vpc_security_group_ids = [aws_security_group.CSITSG.id] placement_group = aws_placement_group.CSITPG.id source_dest_check = false - depends_on = [aws_vpc.CSITVPC, aws_placement_group.CSITPG] # host_id = "1" root_block_device { @@ -242,6 +242,7 @@ resource "aws_instance" "tg" { } resource "aws_instance" "dut1" { + depends_on = [aws_vpc.CSITVPC, aws_placement_group.CSITPG] ami = var.ami_image availability_zone = var.avail_zone instance_type = var.instance_type @@ -252,7 +253,6 @@ resource "aws_instance" "dut1" { vpc_security_group_ids = [aws_security_group.CSITSG.id] placement_group = aws_placement_group.CSITPG.id source_dest_check = false - depends_on = [aws_vpc.CSITVPC, aws_placement_group.CSITPG] # host_id = "2" root_block_device { diff --git a/terraform-ci-infra/2n_aws_c5n/deploy/versions.tf b/terraform-ci-infra/2n_aws_c5n/deploy/versions.tf index 2d09eb67b4..8b7b8c5f32 100644 --- a/terraform-ci-infra/2n_aws_c5n/deploy/versions.tf +++ b/terraform-ci-infra/2n_aws_c5n/deploy/versions.tf @@ -2,7 +2,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "~> 3.26.0" + version = "~> 3.28.0" } null = { source = "hashicorp/null" |