text PaaS和Terraform测试

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text PaaS和Terraform测试相关的知识,希望对你有一定的参考价值。

# Configure the IBM Cloud Provider
provider "ibm" {
  bluemix_api_key    = "${var.ibm_bmx_api_key}"
  softlayer_username = "${var.ibm_sl_username}"
  softlayer_api_key  = "${var.ibm_sl_api_key}"
}

data "ibm_org" "orgData" {
  org = "CDE TEAM"
}

data "ibm_account" "accountData" {
  org_guid = "${data.ibm_org.orgData.id}"
}

data "ibm_space" "spaceData" {
  space = "coolkids"
  org   = "CDE TEAM"
}

resource "ibm_service_instance" "service_instance" {
  name       = "tflogging"
  space_guid = "${data.ibm_space.spaceData.id}"
  service    = "ibmLogAnalysis"
  plan       = "Standard"
}

resource "ibm_service_key" "logging_service_key" {
  name                  = "tfloggingserviceKey"
  service_instance_guid = "${data.ibm_service_instance.service_instance.id}"
}

output "Space GUID" { 
  value = "${data.ibm_space.spaceData.id}"
}

output "Org ID" { 
  value = "${data.ibm_org.orgData.id}"
}

以上是关于text PaaS和Terraform测试的主要内容,如果未能解决你的问题,请参考以下文章

text OneLiner变量和terraform适用

text Terraform v0.11.14

text Terraform:ACM与DNS验证

text Terraform

text Terraform模块用法

text DigitalOcean Terraform模块服务定义