-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
49 lines (40 loc) · 1.28 KB
/
outputs.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
output "arn" {
description = "ARN of the created secret"
value = aws_secretsmanager_secret.this.arn
}
output "environment_variables" {
description = "Environment variables provided by this secret"
value = local.env_vars
}
output "id" {
description = "Id of the created secret"
value = aws_secretsmanager_secret.this.id
}
output "kms_key_alias" {
description = "Alias of the KMS key encrypting the secret"
value = aws_kms_alias.this.name
}
output "kms_key_arn" {
description = "Alias of the KMS key encrypting the secret"
value = aws_kms_alias.this.arn
}
output "name" {
description = "Name of the created secret"
value = aws_secretsmanager_secret.this.name
}
output "policy_json" {
description = "Policy json for consuming this secret"
value = data.aws_iam_policy_document.read_secret.json
}
output "rotation_role_arn" {
description = "ARN of the IAM role allowed to rotate this secret"
value = join("", data.aws_iam_role.rotation[*].arn)
}
output "rotation_role_name" {
description = "Name of the IAM role allowed to rotate this secret"
value = join("", data.aws_iam_role.rotation[*].name)
}
output "secret_name" {
description = "Name of the created secret"
value = aws_secretsmanager_secret.this.name
}