This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from stepanstipl/add-terraform-fmt-check-to-p…
…ipeline GPII-3334: Add terraform fmt check to pipeline
- Loading branch information
Showing
14 changed files
with
85 additions
and
65 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
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,54 +1,59 @@ | ||
resource "aws_ebs_volume" "couchdb_us-east-2a" { | ||
availability_zone = "us-east-2a" | ||
size = 5 | ||
encrypted = true | ||
size = 5 | ||
encrypted = true | ||
|
||
tags { | ||
Name = "${var.environment} couchdb us-east-2a pv" | ||
Name = "${var.environment} couchdb us-east-2a pv" | ||
Environment = "${var.environment}" | ||
Terraform = true | ||
Terraform = true | ||
} | ||
} | ||
|
||
resource "aws_ebs_volume" "couchdb_us-east-2b" { | ||
availability_zone = "us-east-2b" | ||
size = 5 | ||
encrypted = true | ||
size = 5 | ||
encrypted = true | ||
|
||
tags { | ||
Name = "${var.environment} couchdb us-east-2b pv" | ||
Name = "${var.environment} couchdb us-east-2b pv" | ||
Environment = "${var.environment}" | ||
Terraform = true | ||
Terraform = true | ||
} | ||
} | ||
|
||
resource "aws_ebs_volume" "couchdb_us-east-2c" { | ||
availability_zone = "us-east-2c" | ||
size = 5 | ||
encrypted = true | ||
size = 5 | ||
encrypted = true | ||
|
||
tags { | ||
Name = "${var.environment} couchdb us-east-2c pv" | ||
Name = "${var.environment} couchdb us-east-2c pv" | ||
Environment = "${var.environment}" | ||
Terraform = true | ||
Terraform = true | ||
} | ||
} | ||
|
||
resource "aws_ebs_volume" "prometheus_us-east-2b" { | ||
availability_zone = "us-east-2b" | ||
size = 15 | ||
encrypted = true | ||
size = 15 | ||
encrypted = true | ||
|
||
tags { | ||
Name = "${var.environment} prometheus us-east-2b pv" | ||
Name = "${var.environment} prometheus us-east-2b pv" | ||
Environment = "${var.environment}" | ||
Terraform = true | ||
Terraform = true | ||
} | ||
} | ||
|
||
resource "aws_ebs_volume" "prometheus_us-east-2c" { | ||
availability_zone = "us-east-2c" | ||
size = 15 | ||
encrypted = true | ||
size = 15 | ||
encrypted = true | ||
|
||
tags { | ||
Name = "${var.environment} prometheus us-east-2c pv" | ||
Name = "${var.environment} prometheus us-east-2c pv" | ||
Environment = "${var.environment}" | ||
Terraform = true | ||
Terraform = true | ||
} | ||
} |
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
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,23 +1,21 @@ | ||
variable "record_name" {} | ||
|
||
variable "organization_domain" {} | ||
|
||
|
||
resource "google_dns_managed_zone" "main" { | ||
name = "${var.record_name}-${replace(var.organization_domain, ".", "-")}" | ||
dns_name = "${var.record_name}.${var.organization_domain}." | ||
description = "${var.record_name} DNS zone" | ||
lifecycle { | ||
prevent_destroy = "true" | ||
|
||
lifecycle { | ||
prevent_destroy = "true" | ||
} | ||
} | ||
|
||
|
||
output "gcp_name_servers" { | ||
value = "${google_dns_managed_zone.main.name_servers}" | ||
} | ||
|
||
output "gcp_name" { | ||
value = "${google_dns_managed_zone.main.name}" | ||
} | ||
|
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
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
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
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