generated from hadenlabs/terraform-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
outputs.tf
73 lines (59 loc) · 1.88 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
67
68
69
70
71
72
73
output "instance" {
description = "instance bucket."
value = local.outputs.enabled ? aws_s3_bucket.this[0] : object({})
}
output "bucket_domain_name" {
value = local.outputs.enabled ? join("", aws_s3_bucket.this.*.bucket_domain_name) : ""
description = "FQDN of bucket"
}
output "bucket_regional_domain_name" {
value = local.outputs.enabled ? join("", aws_s3_bucket.this.*.bucket_regional_domain_name) : ""
description = "The bucket region-specific domain name"
}
output "bucket_id" {
value = local.outputs.enabled ? join("", aws_s3_bucket.this.*.id) : ""
description = "Bucket Name (aka ID)"
}
output "bucket_arn" {
value = local.outputs.enabled ? join("", aws_s3_bucket.this.*.arn) : ""
description = "Bucket ARN"
}
output "bucket_region" {
value = local.outputs.enabled ? join("", aws_s3_bucket.this.*.region) : ""
description = "bucket region"
}
output "tags" {
value = module.tags.tags
description = "tags generated"
}
output "use_fullname" {
value = local.outputs.use_fullname
description = "return if enabled generated name"
}
# data user
output "user_enabled" {
value = local.outputs.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"
}