Skip to content

Commit

Permalink
Sort variables file alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Oct 11, 2023
1 parent 4e857b2 commit 13f2edd
Showing 1 changed file with 91 additions and 102 deletions.
193 changes: 91 additions & 102 deletions terraform/environment/region/variables.tf
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -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
}))
}

Expand All @@ -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
}

Expand All @@ -130,71 +132,58 @@ 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" {
description = "The number of seconds before the session expires to show the warning for the viewer service."
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
}

0 comments on commit 13f2edd

Please sign in to comment.