Skip to content

Commit

Permalink
Remove variables apikeys
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Sep 26, 2019
1 parent 6b5a9c8 commit 9b06397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions provider.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@

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"
}


provider "ibm" {
ibmcloud_api_key = "${var.ibmcloud_api_key}"
ibmcloud_timeout = 300
generation = "1"
}

0 comments on commit 9b06397

Please sign in to comment.