generated from ministryofjustice/cloud-platform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
data.tf
60 lines (42 loc) · 1.97 KB
/
data.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
data "aws_secretsmanager_secret" "dev_assume_role_arn" {
name = "${module.label.id}__dev_assume_role_arn"
}
data "aws_secretsmanager_secret_version" "dev_assume_role_arn" {
secret_id = data.aws_secretsmanager_secret.dev_assume_role_arn.id
}
data "aws_secretsmanager_secret" "pre_production_assume_role_arn" {
name = "${module.label.id}__pre_production_assume_role_arn"
}
data "aws_secretsmanager_secret_version" "pre_production_assume_role_arn" {
secret_id = data.aws_secretsmanager_secret.pre_production_assume_role_arn.id
}
data "aws_secretsmanager_secret" "production_assume_role_arn" {
name = "${module.label.id}__production_assume_role_arn"
}
data "aws_secretsmanager_secret_version" "production_assume_role_arn" {
secret_id = data.aws_secretsmanager_secret.production_assume_role_arn.id
}
data "aws_secretsmanager_secret" "production_kinesis_destination_arn" {
name = "${module.label.id}__production_kinesis_destination_arn"
}
data "aws_secretsmanager_secret_version" "production_kinesis_destination_arn" {
secret_id = data.aws_secretsmanager_secret.production_kinesis_destination_arn.id
}
data "aws_secretsmanager_secret" "pre_production_kinesis_destination_arn" {
name = "${module.label.id}__pre_production_kinesis_destination_arn"
}
data "aws_secretsmanager_secret_version" "pre_production_kinesis_destination_arn" {
secret_id = data.aws_secretsmanager_secret.pre_production_kinesis_destination_arn.id
}
data "aws_secretsmanager_secret" "development_kinesis_destination_arn" {
name = "${module.label.id}__development_kinesis_destination_arn"
}
data "aws_secretsmanager_secret_version" "development_kinesis_destination_arn" {
secret_id = data.aws_secretsmanager_secret.development_kinesis_destination_arn.id
}
data "aws_secretsmanager_secret" "production_account_id" {
name = "${module.label.id}__production_account_id"
}
data "aws_secretsmanager_secret_version" "production_account_id" {
secret_id = data.aws_secretsmanager_secret.production_account_id.id
}