This module adds an IBM Cloud account to Cloudability by gathering all of the required data for the request, validating that the bucket contains the billing files, and then verifying from the cloudability that it has the access it requires to access the files.
module "cloudability_onboarding" {
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cloudability-onboarding//modules/cloudability-onboarding"
ibmcloud_api_key = "XXXXXXXXXX"
cos_bucket_prefix = "IBMCloud-Billing-Reports"
cos_bucket_location = "us-south"
cos_bucket_crn = "crn:v1:bluemix:public:cloud-object-storage:global:a/81ee25188545f05150650a0a4ee015bb:a2deec95-0836-4720-bfc7-ca41c28a8c66:bucket:tf-listbuckettest"
enterprise_id = "xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX"
skip_verification = false
cloudability_host = "api.cloudability.com"
}
Name | Version |
---|---|
terraform | >=1.9.0 |
cloudability | >= 0.0.35, <1.0.0 |
ibm | >= 1.59.0, <2.0.0 |
null | >= 3.2.2, <4.0.0 |
restapi | >= 1.18.2, <2.0.0 |
No modules.
Name | Type |
---|---|
null_resource.wait_for_billing_exports | resource |
restapi_object.cloudability_ibm_account | resource |
cloudability_account_verification.ibm_account | data source |
ibm_iam_account_settings.account | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cloudability_host | IBM Cloudability host name as described in https://help.apptio.com/en-us/cloudability/api/v3/getting%20started%20with%20the%20cloudability.htm | string |
"api.cloudability.com" |
no |
cos_bucket_crn | CRN of the Object Storage bucket | string |
n/a | yes |
cos_bucket_location | Location of the Object Storage bucket. | string |
n/a | yes |
cos_bucket_prefix | name of the manifest file in the cost report | string |
"IBMCloud-Billing-Reports" |
no |
cos_instance_name | The name to give the Cloud Object Storage instance that will be provisioned by this module. If not specified then the instance name is retrieved from the instance crn from the bucket | string |
null |
no |
cost_report_name | name of the manifest file in the cost report | string |
"manifest" |
no |
enterprise_id | Guid for the enterprise id | string |
"" |
no |
ibmcloud_api_key | The IBM Cloud API Key | string |
n/a | yes |
skip_verification | whether to verify the account after adding the account to cloudability. | bool |
true |
no |
Name | Description |
---|---|
cloudability_account_verification_state | Current state of the cloudability account verification if var.skip_verification is enabled |