forked from cloudposse/terraform-aws-s3-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
61 lines (50 loc) · 1.63 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
output "bucket_domain_name" {
value = module.this.enabled ? join("", aws_s3_bucket.default.*.bucket_domain_name) : ""
description = "FQDN of bucket"
}
output "bucket_regional_domain_name" {
value = module.this.enabled ? join("", aws_s3_bucket.default.*.bucket_regional_domain_name) : ""
description = "The bucket region-specific domain name"
}
output "bucket_id" {
value = module.this.enabled ? join("", aws_s3_bucket.default.*.id) : ""
description = "Bucket Name (aka ID)"
}
output "bucket_arn" {
value = module.this.enabled ? join("", aws_s3_bucket.default.*.arn) : ""
description = "Bucket ARN"
}
output "bucket_region" {
value = module.this.enabled ? join("", aws_s3_bucket.default.*.region) : ""
description = "Bucket region"
}
output "enabled" {
value = module.this.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 "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"
}