# ------------------------------------------------------------------------ # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" file accompanying this file. This file is distributed # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either # express or implied. See the License for the specific language governing # permissions and limitations under the License. # ------------------------------------------------------------------------- variable "ecs_launch_type" { default = "EC2" } variable "sample_app_callable" { default = true } # prometheus does not need mocked server variable "disable_mocked_server" { default = false } variable "mock_endpoint" { default = "localhost/put-data" } variable "ecs_taskdef_directory" { default = "defaults" } variable "ecs_taskdef_network_mode" { default = "awsvpc" } # if patch is true, we will wait until the instance gets patched after launching the instance, # also set a patch tag onto the instance so that the instance get picked by the ssm patching process. # and then start the installation of collector. variable "patch" { default = true } variable "ecs_extra_apps_image_repo" { # When empty will use sample image repo default = "" } variable "ecs_extra_apps" { type = map(object({ definition = string service_name = string service_type = string replicas = number network_mode = string launch_type = string cpu = number memory = number })) default = {} } // This will only fetch data from the MSK cluster in case this value is set variable "kafka_version" { default = "" } // Source of the configurations in ECS: env_var, s3, http and https variable "configuration_source" { default = "env_var" validation { condition = contains(["env_var", "http", "https", "s3"], var.configuration_source) error_message = "Invalid configuration_source for ecs" } }