| ecs_cluster |
The config for the terraform-aws-modules/ecs/aws module. For published KMS blocks, legacy enabled is deprecated and still accepted; prefer cmk_enabled. |
object({ autoscaling_capacity_providers = optional(any, {}) cluster_configuration = optional(any, { execute_command_configuration = { logging = "OVERRIDE" log_configuration = { cloud_watch_log_group_name = "/aws/ecs/aws-ec2" } } }) cluster_name = optional(string, "fleet") cloudwatch_log_group = optional(object({ create = optional(bool, true) retention_in_days = optional(number, 90) kms = optional(object({ cmk_enabled = optional(bool, null) enabled = optional(bool, null) kms_key_arn = optional(string, null) kms_alias = optional(string, "fleet-ecs-cluster-logs") }), { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-ecs-cluster-logs" }) }), { create = true retention_in_days = 90 kms = { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-ecs-cluster-logs" } }) cluster_settings = optional(any, { "name" : "containerInsights", "value" : "enabled", }) create = optional(bool, true) default_capacity_provider_use_fargate = optional(bool, true) fargate_capacity_providers = optional(any, { FARGATE = { default_capacity_provider_strategy = { weight = 100 } } FARGATE_SPOT = { default_capacity_provider_strategy = { weight = 0 } } }) tags = optional(map(string)) }) |
{ "autoscaling_capacity_providers": {}, "cloudwatch_log_group": { "create": true, "kms": { "cmk_enabled": null, "enabled": null, "kms_alias": "fleet-ecs-cluster-logs", "kms_key_arn": null }, "retention_in_days": 90 }, "cluster_configuration": { "execute_command_configuration": { "log_configuration": { "cloud_watch_log_group_name": "/aws/ecs/aws-ec2" }, "logging": "OVERRIDE" } }, "cluster_name": "fleet", "cluster_settings": { "name": "containerInsights", "value": "enabled" }, "create": true, "default_capacity_provider_use_fargate": true, "fargate_capacity_providers": { "FARGATE": { "default_capacity_provider_strategy": { "weight": 100 } }, "FARGATE_SPOT": { "default_capacity_provider_strategy": { "weight": 0 } } }, "tags": {} } |
no |
| fleet_config |
The configuration object for Fleet itself. Fields that default to null will have their respective resources created if not specified. For published KMS blocks, legacy enabled is deprecated and still accepted; prefer cmk_enabled. |
object({ task_mem = optional(number, null) task_cpu = optional(number, null) ephemeral_storage = optional(object({ size_in_gib = number }), null) mem = optional(number, 4096) cpu = optional(number, 512) pid_mode = optional(string, null) image = optional(string, "fleetdm/fleet:v4.81.2") family = optional(string, "fleet") sidecars = optional(list(any), []) depends_on = optional(list(any), []) mount_points = optional(list(any), []) volumes = optional(list(any), []) extra_environment_variables = optional(map(string), {}) extra_iam_policies = optional(list(string), []) extra_execution_iam_policies = optional(list(string), []) extra_secrets = optional(map(string), {}) security_group_name = optional(string, "fleet") iam_role_arn = optional(string, null) repository_credentials = optional(string, "") private_key_secret_name = optional(string, "fleet-server-private-key") private_key_secret_kms = optional(object({ cmk_enabled = optional(bool, null) enabled = optional(bool, null) kms_key_arn = optional(string, null) kms_alias = optional(string, "fleet-server-private-key") }), { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-server-private-key" }) fargate_ephemeral_storage_kms = optional(object({ cmk_enabled = optional(bool, null) enabled = optional(bool, null) kms_key_arn = optional(string, null) kms_alias = optional(string, "fleet-fargate-ephemeral-storage") }), { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-fargate-ephemeral-storage" }) server_tls_enabled = optional(bool, false) service = optional(object({ name = optional(string, "fleet") }), { name = "fleet" }) database = optional(object({ password_secret_arn = string password_secret_kms_key_arn = optional(string, null) user = string database = string address = string rr_address = optional(string, null) }), { password_secret_arn = null password_secret_kms_key_arn = null user = null database = null address = null rr_address = null }) redis = optional(object({ address = string use_tls = optional(bool, true) }), { address = null use_tls = true }) awslogs = optional(object({ name = optional(string, null) region = optional(string, null) create = optional(bool, true) prefix = optional(string, "fleet") retention = optional(number, 5) kms = optional(object({ cmk_enabled = optional(bool, null) enabled = optional(bool, null) kms_key_arn = optional(string, null) kms_alias = optional(string, "fleet-application-logs") }), { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-application-logs" }) }), { name = null region = null create = true prefix = "fleet" retention = 5 kms = { cmk_enabled = null enabled = null kms_key_arn = null kms_alias = "fleet-application-logs" } }) loadbalancer = optional(object({ arn = string }), { arn = null }) extra_load_balancers = optional(list(any), []) networking = optional(object({ subnets = optional(list(string), null) security_groups = optional(list(string), null) ingress_sources = optional(object({ cidr_blocks = optional(list(string), []) ipv6_cidr_blocks = optional(list(string), []) security_groups = optional(list(string), []) prefix_list_ids = optional(list(string), []) }), { cidr_blocks = [] ipv6_cidr_blocks = [] security_groups = [] prefix_list_ids = [] }) assign_public_ip = optional(bool, false) }), { subnets = null security_groups = null ingress_sources = { cidr_blocks = [] ipv6_cidr_blocks = [] security_groups = [] prefix_list_ids = [] } assign_public_ip = false }) autoscaling = optional(object({ max_capacity = optional(number, 5) min_capacity = optional(number, 1) memory_tracking_target_value = optional(number, 80) cpu_tracking_target_value = optional(number, 80) }), { max_capacity = 5 min_capacity = 1 memory_tracking_target_value = 80 cpu_tracking_target_value = 80 }) iam = optional(object({ role = optional(object({ name = optional(string, "fleet-role") policy_name = optional(string, "fleet-iam-policy") }), { name = "fleet-role" policy_name = "fleet-iam-policy" }) execution = optional(object({ name = optional(string, "fleet-execution-role") policy_name = optional(string, "fleet-execution-role") }), { name = "fleet-execution-role" policy_name = "fleet-iam-policy-execution" }) }), { name = "fleetdm-execution-role" }) software_installers = optional(object({ create_bucket = optional(bool, true) bucket_name = optional(string, null) bucket_prefix = optional(string, "fleet-software-installers-") s3_object_prefix = optional(string, "") enable_bucket_versioning = optional(bool, false) expire_noncurrent_versions = optional(bool, true) noncurrent_version_expiration_days = optional(number, 30) create_kms_key = optional(bool, false) kms_key_arn = optional(string, null) kms_alias = optional(string, "fleet-software-installers") tags = optional(map(string), {}) }), { create_bucket = true bucket_name = null bucket_prefix = "fleet-software-installers-" s3_object_prefix = "" enable_bucket_versioning = false expire_noncurrent_versions = true noncurrent_version_expiration_days = 30 create_kms_key = false kms_key_arn = null kms_alias = "fleet-software-installers" tags = {} }) }) |
{ "autoscaling": { "cpu_tracking_target_value": 80, "max_capacity": 5, "memory_tracking_target_value": 80, "min_capacity": 1 }, "awslogs": { "create": true, "kms": { "cmk_enabled": null, "enabled": null, "kms_alias": "fleet-application-logs", "kms_key_arn": null }, "name": null, "prefix": "fleet", "region": null, "retention": 5 }, "cpu": 512, "database": { "address": null, "database": null, "password_secret_arn": null, "rr_address": null, "user": null }, "depends_on": [], "ephemeral_storage": null, "extra_environment_variables": {}, "extra_execution_iam_policies": [], "extra_iam_policies": [], "extra_load_balancers": [], "extra_secrets": {}, "family": "fleet", "fargate_ephemeral_storage_kms": { "cmk_enabled": null, "enabled": null, "kms_alias": "fleet-fargate-ephemeral-storage", "kms_key_arn": null }, "iam": { "execution": { "name": "fleet-execution-role", "policy_name": "fleet-iam-policy-execution" }, "role": { "name": "fleet-role", "policy_name": "fleet-iam-policy" } }, "iam_role_arn": null, "image": "fleetdm/fleet:v4.81.2", "loadbalancer": { "arn": null }, "mem": 4096, "mount_points": [], "networking": { "assign_public_ip": false, "ingress_sources": { "cidr_blocks": [], "ipv6_cidr_blocks": [], "prefix_list_ids": [], "security_groups": [] }, "security_groups": null, "subnets": null }, "pid_mode": null, "private_key_secret_kms": { "cmk_enabled": null, "enabled": null, "kms_alias": "fleet-server-private-key", "kms_key_arn": null }, "private_key_secret_name": "fleet-server-private-key", "redis": { "address": null, "use_tls": true }, "repository_credentials": "", "security_group_name": "fleet", "security_groups": null, "server_tls_enabled": false, "service": { "name": "fleet" }, "sidecars": [], "software_installers": { "bucket_name": null, "bucket_prefix": "fleet-software-installers-", "create_bucket": true, "create_kms_key": false, "enable_bucket_versioning": false, "expire_noncurrent_versions": true, "kms_alias": "fleet-software-installers", "kms_key_arn": null, "noncurrent_version_expiration_days": 30, "s3_object_prefix": "", "tags": {} }, "task_cpu": null, "task_mem": null, "volumes": [] } |
no |