From 9b06397b40cf1907f93ea81cf2583cb82303bf36 Mon Sep 17 00:00:00 2001 From: "hkantare@in.ibm.com" Date: Thu, 26 Sep 2019 14:05:19 +0530 Subject: [PATCH] Remove variables apikeys --- README.md | 8 +++----- provider.tf | 6 ------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 908398b..14a5310 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,11 @@ Before you can apply the template in IBM Cloud, complete the following steps. 1. Make sure that you have the following permissions in IBM Cloud Identity and Access Management: * **Manager** service access role for IBM Cloud Schematics * **Operator** platform role for VPC Infrastructure -2. Store your credentials in an [IBM Cloud API key](https://cloud.ibm.com/iam/apikeys). Note the API key value that you use later for the `ibmcloud_api_key` variable. -3. Download the [`ibmcloud` command line interface (CLI) tool](https://cloud.ibm.com/docs/cli/reference/ibmcloud?topic=cloud-cli-install-ibmcloud-cli). -4. Install the `ibmcloud terraform` and `ibmcloud is` CLI plug-ins for Schematics and VPC infrastructure. **Tip**: To update your current plug-ins, run `ibmcloud plugin update`. +2. Download the [`ibmcloud` command line interface (CLI) tool](https://cloud.ibm.com/docs/cli/reference/ibmcloud?topic=cloud-cli-install-ibmcloud-cli). +3. Install the `ibmcloud terraform` and `ibmcloud is` CLI plug-ins for Schematics and VPC infrastructure. **Tip**: To update your current plug-ins, run `ibmcloud plugin update`. * `ibmcloud plugin install schematics` * `ibmcloud plugin install vpc-infrastructure` -5. [Create or use an existing SSH key for VPC virtual servers](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-ssh-keys). +4. [Create or use an existing SSH key for VPC virtual servers](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-ssh-keys). ## Configuring your deployment values @@ -40,7 +39,6 @@ Fill in the following values, based on the steps that you completed before you b |Variable Name|Description| |-------------|-----------| -|`ibmcloud_api_key`|Enter the [IBM Cloud API key](https://cloud.ibm.com/docs/iam?topic=iam-userapikey) with the appropriate permissions to Schematics and VPC infrastructure.| |`ssh_public_key`|Enter the [public SSH key](https://cloud.ibm.com/docs/vpc-on-classic-vsi?topic=vpc-on-classic-vsi-ssh-keys) that you use to access your VPC virtual servers. Use the public key from the `~/.ssh/id_rsa.pub` file generated by the latest version of ssh-keygen tool, with the recommended key-size 2048.| ### Optional values diff --git a/provider.tf b/provider.tf index b2b33c4..82df597 100644 --- a/provider.tf +++ b/provider.tf @@ -1,8 +1,3 @@ - -variable "ibmcloud_api_key" { - description = "The [IBM Cloud API key](https://cloud.ibm.com/docs/iam?topic=iam-userapikey) with the appropriate permissions to Schematics and VPC infrastructure." -} - variable "region" { description = "The region to create your two VPCs in, such as `us-south`. The VPCs are created in two separate zones within the same region. To get a list of all regions, run `ibmcloud is regions`." default = "us-south" @@ -10,7 +5,6 @@ variable "region" { provider "ibm" { - ibmcloud_api_key = "${var.ibmcloud_api_key}" ibmcloud_timeout = 300 generation = "1" }