From 13f2eddffd0dfdb004f6b5db9003c6ee6ff31aa8 Mon Sep 17 00:00:00 2001 From: Sam Ainsworth Date: Wed, 11 Oct 2023 13:40:31 +0100 Subject: [PATCH] Sort variables file alphabetically --- terraform/environment/region/variables.tf | 193 ++++++++++------------ 1 file changed, 91 insertions(+), 102 deletions(-) diff --git a/terraform/environment/region/variables.tf b/terraform/environment/region/variables.tf index 8bc7214a57..1252ad79ed 100644 --- a/terraform/environment/region/variables.tf +++ b/terraform/environment/region/variables.tf @@ -1,73 +1,63 @@ # Many of these variables are temporary and will be removed once the relevant region specific resources are moved to the region module. # E.g. dynamodb_tables will no longer be needed once the DynamoDB tables are moved to the region module. -variable "alb_tg_arns" { - description = "Map of ALB ARNs to be used by the ECS services." - - type = map(object({ - arn = string - name = string - })) - +variable "actor_loadbalancer_security_group_id" { + description = "The ID of the ALB security group for actor service." + type = string } -variable "autoscaling" { - description = "The min and max number of instances to run for each ECS service." - - type = map(object({ - minimum = number - maximum = number - })) +variable "admin_cognito_user_pool_domain_name" { + description = "The domain name of the Cognito User Pool to use for the admin interface." + type = string } -variable "application_logs_name" { - description = "The name of the CloudWatch Logs group to send application logs to." - - type = string +variable "admin_container_version" { + description = "The image tag to use for the admin container." + type = string } -variable "environment_name" { - description = "The name of the environment" - +variable "admin_loadbalancer_security_group_id" { + description = "The ID of the ALB security group for admin service." type = string } -variable "dynamodb_tables" { - description = "The DynamoDB tables to use." - +variable "alb_tg_arns" { + description = "Map of ALB ARNs to be used by the ECS services." type = map(object({ - name = string arn = string + name = string })) } -variable "cognito_user_pool_id" { - description = "The Cognito User Pool ID to use for authentication to the admin interface." - +variable "application_logs_name" { + description = "The name of the CloudWatch Logs group to send application logs to." type = string } -variable "route_53_fqdns" { - description = "The FQDNs to use for the Route 53 records." - - type = map(string) +variable "autoscaling" { + description = "The min and max number of instances to run for each ECS service." + type = map(object({ + minimum = number + maximum = number + })) } -variable "actor_loadbalancer_security_group_id" { - description = "The ID of the ALB security group for actor service." - - type = string +variable "aws_service_discovery_service" { + description = "The AWS Service Discovery service to use." + type = object({ + id = string + arn = string + name = string + }) } -variable "viewer_loadbalancer_security_group_id" { - description = "The ID of the ALB security group for viewer service." - - type = string +variable "capacity_provider" { + description = "The capacity provider to use for the ECS services." + type = string } -variable "admin_loadbalancer_security_group_id" { - description = "The ID of the ALB security group for admin service." - +variable "cognito_user_pool_id" { + description = "The Cognito User Pool ID to use for authentication to the admin interface." type = string } @@ -76,28 +66,21 @@ variable "container_version" { type = string } -variable "admin_container_version" { - description = "The image tag to use for the admin container." - type = string -} - -variable "notify_key_secret_name" { - description = "The name of the secret containing the Notify API key." +variable "cookie_expires_use" { + description = "The number of seconds before the cookie expires for the use service." type = string } -variable "feature_flags" { - # Each feature flag is a key-value pair where the key is the name of the feature flag and the value is the value of the feature flag. - description = "The feature flags to use." - type = map(string) +variable "cookie_expires_view" { + description = "The number of seconds before the cookie expires for the viewer service." + type = number } -variable "ecs_task_roles" { - description = "The ECS task roles to use." +variable "dynamodb_tables" { + description = "The DynamoDB tables to use." type = map(object({ name = string arn = string - id = string })) } @@ -110,18 +93,37 @@ variable "ecs_execution_role" { }) } -variable "lpa_codes_endpoint" { - description = "The endpoint to use for LPA codes." +variable "ecs_task_roles" { + description = "The ECS task roles to use." + type = map(object({ + name = string + arn = string + id = string + })) +} + +variable "environment_name" { + description = "The name of the environment" + type = string +} + +variable "feature_flags" { + description = "The feature flags to use." + type = map(string) +} + +variable "google_analytics_id_use" { + description = "The Google Analytics ID to use for the use service." type = string } -variable "iap_images_endpoint" { - description = "The endpoint to use for IAP images." +variable "google_analytics_id_view" { + description = "The Google Analytics ID to use for the viewer service." type = string } -variable "lpas_collection_endpoint" { - description = "The endpoint to use for LPAs collection." +variable "iap_images_endpoint" { + description = "The endpoint to use for IAP images." type = string } @@ -130,58 +132,45 @@ variable "logging_level" { type = string } -variable "parameter_store_arns" { - description = "The ARNs of the Parameter Store parameters to use." - type = list(string) -} - -variable "sirius_account_id" { - description = "The AWS ID of the Sirius account." +variable "lpa_codes_endpoint" { + description = "The endpoint to use for LPA codes." type = string } -variable "admin_cognito_user_pool_domain_name" { - description = "The domain name of the Cognito User Pool to use for the admin interface." +variable "lpas_collection_endpoint" { + description = "The endpoint to use for LPAs collection." type = string } -variable "capacity_provider" { - description = "The capacity provider to use for the ECS services." +variable "notify_key_secret_name" { + description = "The name of the secret containing the Notify API key." type = string } -variable "aws_service_discovery_service" { - description = "The AWS Service Discovery service to use." - type = object({ - id = string - arn = string - name = string - }) +variable "parameter_store_arns" { + description = "The ARNs of the Parameter Store parameters to use." + type = list(string) } -variable "session_expires_view" { - description = "The number of seconds before the session expires for the viewer service." - type = number +variable "pdf_container_version" { + description = "The image tag to use for the PDF container." + type = string } -variable "cookie_expires_view" { - description = "The number of seconds before the cookie expires for the viewer service." - type = number -} +variable "route_53_fqdns" { + description = "The FQDNs to use for the Route 53 records." -variable "google_analytics_id_view" { - description = "The Google Analytics ID to use for the viewer service." - type = string + type = map(string) } -variable "google_analytics_id_use" { - description = "The Google Analytics ID to use for the use service." +variable "session_expires_use" { + description = "The number of seconds before the session expires for the use service." type = string } -variable "cookie_expires_use" { - description = "The number of seconds before the cookie expires for the use service." - type = string +variable "session_expires_view" { + description = "The number of seconds before the session expires for the viewer service." + type = number } variable "session_expiry_warning" { @@ -189,12 +178,12 @@ variable "session_expiry_warning" { type = string } -variable "session_expires_use" { - description = "The number of seconds before the session expires for the use service." +variable "sirius_account_id" { + description = "The AWS ID of the Sirius account." type = string } -variable "pdf_container_version" { - description = "The image tag to use for the PDF container." - type = string +variable "viewer_loadbalancer_security_group_id" { + description = "The ID of the ALB security group for viewer service." + type = string } \ No newline at end of file