generated from ministryofjustice/cloud-platform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
locals.tf
21 lines (16 loc) · 1.42 KB
/
locals.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
locals {
cidr_block = "10.0.0.0/16"
## vpc module requires the tags map without the "Name" value
## It uses the "name" attribute internally and concatenates with other attributes
tags_minus_name = { for k, v in module.label.tags : k => v if !contains(["Name"], k) }
dev_assume_role_arn = nonsensitive(data.aws_secretsmanager_secret_version.dev_assume_role_arn.secret_string)
pre_production_assume_role_arn = nonsensitive(data.aws_secretsmanager_secret_version.pre_production_assume_role_arn.secret_string)
production_assume_role_arn = nonsensitive(data.aws_secretsmanager_secret_version.production_assume_role_arn.secret_string)
production_kinesis_destination_arn = nonsensitive(data.aws_secretsmanager_secret_version.production_kinesis_destination_arn.secret_string)
pre_production_kinesis_destination_arn = nonsensitive(data.aws_secretsmanager_secret_version.pre_production_kinesis_destination_arn.secret_string)
development_kinesis_destination_arn = nonsensitive(data.aws_secretsmanager_secret_version.development_kinesis_destination_arn.secret_string)
production_account_id = nonsensitive(data.aws_secretsmanager_secret_version.production_account_id.secret_string)
development_account_id = substr(local.dev_assume_role_arn, 13, 12)
pre-production_account_id = substr(local.pre_production_assume_role_arn, 13, 12)
# production_account_id = substr(local.production_assume_role_arn, 13, 12)
}