forked from cloudposse/terraform-aws-s3-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
66 lines (54 loc) · 1.78 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
56
57
58
59
60
61
62
63
64
65
66
output "bucket_domain_name" {
value = local.enabled ? join("", aws_s3_bucket.default.*.bucket_domain_name) : ""
description = "FQDN of bucket"
}
output "bucket_regional_domain_name" {
value = local.enabled ? join("", aws_s3_bucket.default.*.bucket_regional_domain_name) : ""
description = "The bucket region-specific domain name"
}
output "bucket_id" {
value = local.enabled ? join("", aws_s3_bucket.default.*.id) : ""
description = "Bucket Name (aka ID)"
}
output "bucket_arn" {
value = local.enabled ? join("", aws_s3_bucket.default.*.arn) : ""
description = "Bucket ARN"
}
output "bucket_region" {
value = local.enabled ? join("", aws_s3_bucket.default.*.region) : ""
description = "Bucket region"
}
output "enabled" {
value = local.enabled
description = "Is module enabled"
}
output "user_enabled" {
value = var.user_enabled
description = "Is user creation enabled"
}
output "user_name" {
value = module.s3_user.user_name
description = "Normalized IAM user name"
}
output "user_arn" {
value = module.s3_user.user_arn
description = "The ARN assigned by AWS for the user"
}
output "user_unique_id" {
value = module.s3_user.user_unique_id
description = "The user unique ID assigned by AWS"
}
output "replication_role_arn" {
value = local.enabled && local.replication_enabled ? join("", aws_iam_role.replication.*.arn) : ""
description = "The ARN of the replication IAM Role"
}
output "access_key_id" {
sensitive = true
value = module.s3_user.access_key_id
description = "The access key ID"
}
output "secret_access_key" {
sensitive = true
value = module.s3_user.secret_access_key
description = "The secret access key. This will be written to the state file in plain-text"
}