-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.tf
33 lines (27 loc) · 862 Bytes
/
test.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
provider "aws" {
region = local.aws_region
allowed_account_ids = local.aws_allowed_account_ids
assume_role {
role_arn = local.aws_assume_role
}
}
locals {
secret_name = "terraform/production/eu/authorization-service-api"
aws_region = "eu-central-1"
aws_assume_role = "arn:aws:iam::862962005596:role/tf-terraform-developer"
aws_allowed_account_ids = ["862962005596"]
application_environment = {
"MassTransit__Enable" = true
}
}
data "aws_secretsmanager_secret" "secret" {
name = local.secret_name
}
module "diff_secret" {
source = "./module"
aws_secret_id_current = data.aws_secretsmanager_secret.secret.id
secret_manager_new_version = local.application_environment
}
output "env_vars_change" {
value = values(module.diff_secret.env_vars_change)
}