forked from cloudposse/terraform-aws-tfstate-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
55 lines (49 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
50
51
52
53
54
55
output "s3_bucket_domain_name" {
value = join("", aws_s3_bucket.default.*.bucket_domain_name)
description = "S3 bucket domain name"
}
output "s3_bucket_id" {
value = join("", aws_s3_bucket.default.*.id)
description = "S3 bucket ID"
}
output "s3_bucket_arn" {
value = join("", aws_s3_bucket.default.*.arn)
description = "S3 bucket ARN"
}
output "dynamodb_table_name" {
value = element(
coalescelist(
aws_dynamodb_table.with_server_side_encryption.*.name,
aws_dynamodb_table.without_server_side_encryption.*.name,
[""]
),
0
)
description = "DynamoDB table name"
}
output "dynamodb_table_id" {
value = element(
coalescelist(
aws_dynamodb_table.with_server_side_encryption.*.id,
aws_dynamodb_table.without_server_side_encryption.*.id,
[""]
),
0
)
description = "DynamoDB table ID"
}
output "dynamodb_table_arn" {
value = element(
coalescelist(
aws_dynamodb_table.with_server_side_encryption.*.arn,
aws_dynamodb_table.without_server_side_encryption.*.arn,
[""]
),
0
)
description = "DynamoDB table ARN"
}
output "terraform_backend_config" {
value = local.enabled ? local.terraform_backend_config_content : ""
description = "Rendered Terraform backend config file"
}