-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathoutputs.tf
101 lines (82 loc) · 2.55 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
##############################################################################
# Outputs
##############################################################################
output "resource_group_id" {
description = "Resource Group ID"
value = var.resource_group_id
}
output "s3_endpoint_private" {
description = "S3 private endpoint"
value = local.s3_endpoint_private
}
output "s3_endpoint_public" {
description = "S3 public endpoint"
value = local.s3_endpoint_public
}
output "s3_endpoint_direct" {
description = "S3 direct endpoint"
value = local.s3_endpoint_direct
}
output "bucket_id" {
description = "Bucket id"
value = local.bucket_id
}
output "bucket_crn" {
description = "Bucket CRN"
value = local.bucket_crn
}
output "bucket_name" {
description = "Bucket name"
value = local.bucket_name
# Don't output the bucket name until it exists (see https://github.com/terraform-ibm-modules/terraform-ibm-cos/issues/558)
depends_on = [local.bucket_crn]
}
output "bucket_storage_class" {
description = "Bucket Storage Class"
value = local.bucket_storage_class
}
output "bucket_region" {
description = "Bucket region if you create a regional bucket"
value = local.bucket_region
}
output "kms_key_crn" {
description = "The CRN of the KMS key used to encrypt the COS bucket"
value = var.kms_key_crn
}
output "cos_instance_id" {
description = "The ID of the Cloud Object Storage instance"
value = local.cos_instance_id
}
output "cos_instance_guid" {
description = "The GUID of the Cloud Object Storage instance"
value = local.cos_instance_guid
}
output "cos_instance_name" {
description = "The name of the Cloud Object Storage instance"
value = local.cos_instance_name
}
output "cos_instance_crn" {
description = "The CRN of the Cloud Object Storage instance"
value = local.cos_instance_crn
}
output "cos_account_id" {
description = "The account ID in which the Cloud Object Storage instance is created."
value = var.create_cos_instance ? ibm_resource_instance.cos_instance[0].account_id : null
}
output "bucket_cbr_rules" {
description = "COS bucket rules"
value = module.bucket_cbr_rule
}
output "instance_cbr_rules" {
description = "COS instance rules"
value = module.instance_cbr_rule
}
output "cbr_rule_ids" {
description = "List of all rule ids"
value = local.all_rule_ids
}
output "resource_keys" {
description = "List of resource keys"
value = ibm_resource_key.resource_keys
sensitive = true
}