-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update CI and examples for Terraform (#1619)
* chore: Update Ci and examples for Terraform - upgrade terraform versions - replaced philips vpc module by aws-terraform-vpc module - dropped support for terrform pre 1.x from examples * chore: Update Ci and examples for Terraform - upgrade terraform versions - replaced philips vpc module by aws-terraform-vpc module - dropped support for terrform pre 1.x from examples - upgrade terraform versions - replaced philips vpc module by aws-terraform-vpc module - dropped support for terrform pre 1.x from examples replace local by var ref * check formatting for latest terraform version * fix formatting * fix formatting * fix formatting
- Loading branch information
Showing
18 changed files
with
246 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
module "vpc" { | ||
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0" | ||
source = "terraform-aws-modules/vpc/aws" | ||
version = "3.11.2" | ||
|
||
name = "vpc-${local.environment}" | ||
cidr = "10.0.0.0/16" | ||
|
||
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"] | ||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
enable_dns_hostnames = true | ||
enable_nat_gateway = true | ||
map_public_ip_on_launch = false | ||
single_nat_gateway = true | ||
|
||
tags = { | ||
Environment = local.environment | ||
} | ||
|
||
environment = local.environment | ||
aws_region = local.aws_region | ||
create_private_hosted_zone = false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
module "vpc" { | ||
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0" | ||
source = "terraform-aws-modules/vpc/aws" | ||
version = "3.11.2" | ||
|
||
name = "vpc-${local.environment}" | ||
cidr = "10.0.0.0/16" | ||
|
||
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"] | ||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
enable_dns_hostnames = true | ||
enable_nat_gateway = true | ||
map_public_ip_on_launch = false | ||
single_nat_gateway = true | ||
|
||
tags = { | ||
Environment = local.environment | ||
} | ||
|
||
environment = local.environment | ||
aws_region = local.aws_region | ||
create_private_hosted_zone = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
module "vpc" { | ||
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.1.0" | ||
source = "terraform-aws-modules/vpc/aws" | ||
version = "3.11.2" | ||
|
||
name = "vpc-${local.environment}" | ||
cidr = "10.0.0.0/16" | ||
|
||
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"] | ||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
enable_dns_hostnames = true | ||
enable_nat_gateway = true | ||
map_public_ip_on_launch = false | ||
single_nat_gateway = true | ||
|
||
tags = { | ||
Environment = local.environment | ||
} | ||
|
||
environment = local.environment | ||
aws_region = local.aws_region | ||
create_private_hosted_zone = false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
module "vpc" { | ||
source = "git::https://github.com/philips-software/terraform-aws-vpc.git?ref=2.2.0" | ||
source = "terraform-aws-modules/vpc/aws" | ||
version = "3.11.2" | ||
|
||
name = "vpc-${local.environment}" | ||
cidr = "10.0.0.0/16" | ||
|
||
azs = ["${var.aws_region}a", "${var.aws_region}b", "${var.aws_region}c"] | ||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
enable_dns_hostnames = true | ||
enable_nat_gateway = true | ||
map_public_ip_on_launch = false | ||
single_nat_gateway = true | ||
|
||
tags = { | ||
Environment = local.environment | ||
} | ||
|
||
environment = local.environment | ||
aws_region = var.aws_region | ||
create_private_hosted_zone = false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.71" | ||
} | ||
local = { | ||
source = "hashicorp/local" | ||
} | ||
random = { | ||
source = "hashicorp/random" | ||
} | ||
} | ||
required_version = ">= 1" | ||
} |
Oops, something went wrong.