-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Adding ARM Support
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module "service" { | ||
source = "../.." | ||
|
||
primary_hosted_zone = var.primary_hosted_zone | ||
|
||
runtime_platform = { | ||
cpu_architecture = "ARM64" | ||
} | ||
|
||
organization = var.organization | ||
environment = var.environment | ||
product = var.product | ||
repo = var.repo | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "domain_name" { | ||
value = module.service.domain_name | ||
} |
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-arm" | ||
# profile = "my-profile" | ||
# region = "us-east-1" | ||
# dynamodb_table = "terraform-lock" | ||
# } | ||
# } |
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 | ||
# } | ||
# } | ||
# } |
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-arm" | ||
|
||
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." | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "primary_hosted_zone" { | ||
type = string | ||
description = "Primary hosted zone for this service. Populate `TF_VAR_primary_hosted_zone` before running any tests to have this value populated." | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.