Skip to content

Commit

Permalink
Merge pull request #28 from sunilkumarmohanty/fix-subnets
Browse files Browse the repository at this point in the history
fix subnet variable assignments to VPC module and other terraform deprecations
  • Loading branch information
Sunil Kumar Mohanty authored May 9, 2021
2 parents 818250f + 8ac7689 commit c191f7b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
.env
.ssh
**/node_modules/
.terraform.lock.hcl
2 changes: 1 addition & 1 deletion aws/wordpress_fargate/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module "acm" {
tags = var.tags

providers = {
aws = "aws.us_east_1" # cloudfront needs acm certificate to be from "us-east-1" region
aws = aws.us_east_1 # cloudfront needs acm certificate to be from "us-east-1" region
}
}

Expand Down
2 changes: 1 addition & 1 deletion aws/wordpress_fargate/fargate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ resource "aws_ecs_service" "this" {
}

lifecycle {
ignore_changes = ["desired_count"]
ignore_changes = [desired_count]
}

}
Expand Down
3 changes: 0 additions & 3 deletions aws/wordpress_fargate/provider.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
provider "aws" {
version = "~> 2.0"
}

terraform {
Expand All @@ -12,9 +11,7 @@ terraform {
provider "aws" {
alias = "us_east_1"
region = "us-east-1"
version = "~> 2.0"
}

provider "random" {
version = "~> 2.2"
}
4 changes: 2 additions & 2 deletions aws/wordpress_fargate/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module "vpc" {
name = "${var.prefix}-${var.environment}"
cidr = var.vpc_cidr
azs = data.aws_availability_zones.this.names
private_subnets = var.public_subnet_cidrs
public_subnets = var.private_subnet_cidrs
private_subnets = var.private_subnet_cidrs
public_subnets = var.public_subnet_cidrs
enable_nat_gateway = true
single_nat_gateway = false
one_nat_gateway_per_az = false
Expand Down

0 comments on commit c191f7b

Please sign in to comment.