Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/basic-example/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module "basic-example" {
source = "../../"

name = "basic-example"
ecs_cluster_name = "example-cluster"
lb_arn = "lb.aws.amazon.com"
subnet_ids = ["subnet-123", "subnet-456", "subnet-789"]
task_container_definitions = "nginx"
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ resource "aws_codedeploy_deployment_group" "main" {

alarm_configuration {
enabled = length(var.codedeploy_cloudwatch_alarm_names) > 0 ? true : false
alarms = var.codedeploy_cloudwatch_alarm_names
alarms = var.codedeploy_cloudwatch_alarm_names
}

load_balancer_info {
Expand Down
13 changes: 4 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ variable "task_ephemeral_storage_size_in_gib" {
variable "task_volumes" {
description = "A list of volume definitions."
default = []
type = list(object({
type = list(object({
name = string
host_path = string

Expand Down Expand Up @@ -102,7 +102,7 @@ variable "task_volumes" {
variable "task_inference_accelerators" {
description = "List of Elastic Inference accelerators associated with the task."
default = []
type = list(object({
type = list(object({
name = string
type = string
}))
Expand All @@ -111,7 +111,7 @@ variable "task_inference_accelerators" {
variable "task_proxy_configuration" {
description = "Configuration details for an App Mesh proxy."
default = null
type = object({
type = object({
container_name = string
properties = map(any)
type = optional(string, "APPMESH")
Expand Down Expand Up @@ -208,7 +208,7 @@ variable "enable_ecs_managed_tags" {
variable "service_registries" {
description = "Service discovery registries for the service."
default = []
type = list(object({
type = list(object({
registry_arn = string
port = number
container_name = optional(string)
Expand Down Expand Up @@ -402,11 +402,6 @@ variable "target_group_health_check_port" {
description = "Port to use to connect with the target."
default = "traffic-port"
type = any

validation {
condition = can(tostring(var.target_group_health_check_port)) && var.target_group_health_check_port == "traffic-port"
error_message = "Value must be `traffic-port` or a number between 1 and 65535."
}
}

variable "target_group_health_check_protocol" {
Expand Down