-
Notifications
You must be signed in to change notification settings - Fork 0
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 #108 from pbs/CAT-24419-v2
CAT-24419 Added CW Application Signals setup
- Loading branch information
Showing
12 changed files
with
195 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
backend.tf | ||
provider.tf |
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,12 @@ | ||
module "service" { | ||
source = "../.." | ||
|
||
hosted_zone = var.hosted_zone | ||
|
||
enable_application_signals = true | ||
|
||
organization = var.organization | ||
environment = var.environment | ||
product = var.product | ||
repo = var.repo | ||
} |
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,3 @@ | ||
output "domain_name" { | ||
value = module.service.domain_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# terraform { | ||
# backend "s3" { | ||
# bucket = "my-bucket-tfstate" | ||
# key = "example-terraform-aws-ecs-service-basic" | ||
# profile = "my-profile" | ||
# region = "us-east-1" | ||
# dynamodb_table = "terraform-lock" | ||
# } | ||
# } |
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,12 @@ | ||
# provider "aws" { | ||
# region = "us-east-1" | ||
# profile = "my-profile" | ||
# default_tags { | ||
# tags = { | ||
# product = var.product | ||
# environment = var.environment | ||
# repo = var.repo | ||
# organization = var.organization | ||
# } | ||
# } | ||
# } |
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,45 @@ | ||
variable "environment" { | ||
description = "Environment (sharedtools, dev, staging, prod)" | ||
type = string | ||
|
||
default = "sharedtools" | ||
|
||
validation { | ||
condition = contains(["sharedtools", "dev", "staging", "prod"], var.environment) | ||
error_message = "The environment variable must be one of [sharedtools, dev, staging, prod]." | ||
} | ||
} | ||
|
||
variable "product" { | ||
description = "Tag used to group resources according to application" | ||
|
||
default = "example-tf-ecs-service-basic" | ||
|
||
validation { | ||
condition = can(regex("[a-z\\-]+", var.product)) | ||
error_message = "The product variable violates approved regex." | ||
} | ||
} | ||
|
||
variable "repo" { | ||
description = "Tag used to point to the repo using this module" | ||
|
||
default = "https://github.com/pbs/terraform-ecs-service-module.git" | ||
|
||
validation { | ||
condition = can(regex("(?:git|ssh|https?|git@[-\\w.]+):(\\/\\/)?(.*?)(\\.git)(\\/?|\\#[-\\d\\w._]+?)$", var.repo)) | ||
error_message = "The repo variable violates approved regex." | ||
} | ||
} | ||
|
||
variable "organization" { | ||
description = "Organization using this module. Used to prefix tags so that they are easily identified as being from your organization" | ||
type = string | ||
|
||
default = "example" | ||
|
||
validation { | ||
condition = can(regex("[a-z\\-]+", var.organization)) | ||
error_message = "The organization variable violates approved regex." | ||
} | ||
} |
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,4 @@ | ||
variable "hosted_zone" { | ||
type = string | ||
description = "Primary hosted zone for this service. Populate `TF_VAR_hosted_zone` before running any tests to have this value populated." | ||
} |
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