-
Notifications
You must be signed in to change notification settings - Fork 22
/
smokey.tf
38 lines (36 loc) · 1.48 KB
/
smokey.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module "smokey_network_config" {
source = "../../modules/task-network-config"
subnets = local.private_subnets
security_groups = [aws_security_group.smokey.id]
}
module "smokey_container_definition" {
source = "../../modules/container-definition"
aws_region = data.aws_region.current.name
environment_variables = {
ENVIRONMENT = var.govuk_environment
GOVUK_APP_DOMAIN = local.workspace_external_domain
GOVUK_WEBSITE_ROOT = local.public_entry_url
# TODO: This should be autogenerated. Add to signon bootstrap task.
SIGNON_EMAIL = "signon@alphagov.co.uk" # For historical reasons
}
log_group = local.log_group
log_stream_prefix = "smokey"
log_to_splunk = false
secrets_from_arns = {
# TODO: These can be autogenerated.
AUTH_USERNAME = data.aws_secretsmanager_secret.smokey_auth_username.arn
AUTH_PASSWORD = data.aws_secretsmanager_secret.smokey_auth_password.arn
# TODO: This should be autogenerated. Add to signon bootstrap task.
SIGNON_PASSWORD = data.aws_secretsmanager_secret.smokey_signon_password.arn
}
ports = []
}
module "smokey_task_definition" {
source = "../../modules/task-definition"
container_definitions = [module.smokey_container_definition.json_format]
cpu = 512
execution_role_arn = aws_iam_role.execution.arn
family = "smokey-${terraform.workspace}"
memory = 1024
task_role_arn = aws_iam_role.task.arn
}