Skip to content

Commit

Permalink
removed deprecated generation directive
Browse files Browse the repository at this point in the history
  • Loading branch information
dprosper committed Apr 26, 2021
1 parent 80eba16 commit f30cae0
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 32 deletions.
1 change: 0 additions & 1 deletion tests/runner.sh
Expand Up @@ -41,7 +41,6 @@ fi
# log in
ibmcloud config --check-version=false
ibmcloud login --apikey $API_KEY -r $REGION -g $RESOURCE_GROUP
ibmcloud is target --gen 2

if [ "$KEYS" ];
then
Expand Down
3 changes: 1 addition & 2 deletions vpc-app-deploy/README.md
Expand Up @@ -3,15 +3,14 @@ How to install software and files onto a Virtual Private Cloud, VPC, virtual ser

Here is the full [solution tutorial](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-vpc-app-deploy)

Each of the following examples will do the deployment as descibed in the tutorial then test the deployment and finally destroy the stuff provisioned.
Each of the following examples will do the deployment as described in the tutorial then test the deployment and finally destroy the stuff provisioned.


First you must initialize the current shell:
```
cp export.template export
vi export; # fill in the environment variables
source export
ibmcloud is target --gen 2
```

To run the cli example:
Expand Down
1 change: 0 additions & 1 deletion vpc-app-deploy/ansible/tf/main.tf
Expand Up @@ -2,7 +2,6 @@
provider "ibm" {
region = "${var.region}"
ibmcloud_api_key = "${var.ibmcloud_api_key}"
generation = 2
ibmcloud_timeout = "${var.ibmcloud_timeout}"
}

Expand Down
1 change: 0 additions & 1 deletion vpc-app-deploy/tf/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
region = var.region
ibmcloud_api_key = var.ibmcloud_api_key
generation = 2
ibmcloud_timeout = var.ibmcloud_timeout
}

Expand Down
1 change: 0 additions & 1 deletion vpc-app-deploy/tfinstance/main.tf
Expand Up @@ -29,7 +29,6 @@ provider "ibm" {
region = var.region
ibmcloud_api_key = var.ibmcloud_api_key
ibmcloud_timeout = var.ibmcloud_timeout
generation = 2
}

data "ibm_resource_group" "group" {
Expand Down
1 change: 0 additions & 1 deletion vpc-autoscale/providers.tf
@@ -1,6 +1,5 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
generation = 2
ibmcloud_timeout = var.ibmcloud_timeout
}
1 change: 0 additions & 1 deletion vpc-cockroachdb-mzr/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
ibmcloud_timeout = 300
generation = 2
region = var.vpc_region
}

Expand Down
2 changes: 1 addition & 1 deletion vpc-import-image/000-prereqs.sh
Expand Up @@ -9,7 +9,7 @@ ibmcloud target -g $RESOURCE_GROUP_NAME

echo ">>> Setting VPC Gen for compute..."
if ibmcloud is >/dev/null; then
ibmcloud is target --gen 2
echo "is plugin is OK"
else
echo "Make sure vpc-infrastructure plugin is properly installed with ibmcloud plugin install vpc-infrastructure."
exit 1
Expand Down
1 change: 0 additions & 1 deletion vpc-import-image/create-vpc-vsi/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
generation = 2
}

data "ibm_is_image" "ds_image" {
Expand Down
1 change: 0 additions & 1 deletion vpc-instance-storage/providers.tf
@@ -1,6 +1,5 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
ibmcloud_timeout = 300
generation = 2
region = var.vpc_region
}
2 changes: 1 addition & 1 deletion vpc-lamp/instance.tf
Expand Up @@ -106,7 +106,7 @@ resource "ibm_is_instance" "vpc_vsi" {
name = "${var.resources_prefix}-vsi"
vpc = ibm_is_vpc.vpc.id
zone = "${var.vpc_region}-1"
keys = ["${data.ibm_is_ssh_key.ssh_key.id}"]
keys = [data.ibm_is_ssh_key.ssh_key.id]
image = data.ibm_is_image.image_name.id
profile = var.vpc_image_profile
resource_group = data.ibm_resource_group.group.id
Expand Down
1 change: 0 additions & 1 deletion vpc-lamp/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
ibmcloud_timeout = 300
generation = 2
region = var.vpc_region
}

Expand Down
2 changes: 1 addition & 1 deletion vpc-migrate-from-classic/000-prereqs.sh
Expand Up @@ -6,7 +6,7 @@ ibmcloud target -g $RESOURCE_GROUP_NAME

echo ">>> Setting VPC Gen for compute..."
if ibmcloud is >/dev/null; then
ibmcloud is target --gen 2
echo "is plugin is OK"
else
echo "Make sure vpc-infrastructure plugin is properly installed with ibmcloud plugin install vpc-infrastructure."
exit 1
Expand Down
1 change: 0 additions & 1 deletion vpc-migrate-from-classic/create-vpc-ssh-key/main.tf
Expand Up @@ -4,7 +4,6 @@ variable "ssh_key_name" {}

provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
generation = 2
}

resource "ibm_is_ssh_key" "key" {
Expand Down
1 change: 0 additions & 1 deletion vpc-migrate-from-classic/create-vpc-vsi/main.tf
Expand Up @@ -2,7 +2,6 @@ provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
ibmcloud_timeout = var.ibmcloud_timeout
generation = 2
}

data "ibm_is_image" "ds_image" {
Expand Down
2 changes: 1 addition & 1 deletion vpc-migrate-from-classic/pipeline_build.sh
Expand Up @@ -26,7 +26,7 @@ install_software() {
ibmcloud login --apikey $IBMCLOUD_API_KEY -r $REGION
ibmcloud plugin install vpc-infrastructure -f
ibmcloud plugin install cloud-object-storage -f
ibmcloud is target --gen 1
# ibmcloud is target --gen 1
ibmcloud plugin update -all

# qemu
Expand Down
5 changes: 0 additions & 5 deletions vpc-multi-region/README.md
Expand Up @@ -12,11 +12,6 @@ The scripts in this directory can be used to deploy or clean up the resources fo
## Instructions

1. In a browser visit [IAM authorizations](https://cloud.ibm.com/iam/authorizations) and add an authorization from the source: **VPC Infrastructure**, **Load Balancer for VPC** to the Target **Certificate Manager**
1. Target the VPC generation:

```
ibmcloud is target --gen 2
```

1. Open the terminal and add your SSH key

Expand Down
1 change: 0 additions & 1 deletion vpc-one-vsi/tf/providers.tf
@@ -1,6 +1,5 @@
provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
generation = 2
ibmcloud_timeout = var.ibmcloud_timeout
}
1 change: 0 additions & 1 deletion vpc-public-app-private-backend/tf/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
region = var.region
ibmcloud_api_key = var.ibmcloud_api_key
generation = 2
ibmcloud_timeout = var.ibmcloud_timeout
}

Expand Down
1 change: 0 additions & 1 deletion vpc-secure-management-bastion-server/tf/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
region = var.region
ibmcloud_api_key = var.ibmcloud_api_key
generation = 2
ibmcloud_timeout = var.ibmcloud_timeout
}

Expand Down
1 change: 0 additions & 1 deletion vpc-site2site-vpn/tf/main.tf
@@ -1,7 +1,6 @@
provider "ibm" {
region = var.region
ibmcloud_api_key = var.ibmcloud_api_key
generation = 2
iaas_classic_username = var.iaas_classic_username
iaas_classic_api_key = var.iaas_classic_api_key
ibmcloud_timeout = var.ibmcloud_timeout
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/multicloud/ibm.tf
@@ -1,7 +1,6 @@
# VPC with one subnet, one VSI and a floating IP
provider "ibm" {
region = var.ibm_region
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/part1a/ibm.tf
@@ -1,7 +1,6 @@
# VPC with one subnet, one VSI and a floating IP
provider "ibm" {
region = var.ibm_region
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/part1b/ibm.tf
@@ -1,7 +1,6 @@
# VPC with one subnet, one VSI and a floating IP
provider "ibm" {
region = var.ibm_region
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/part1c/ibm.tf
@@ -1,7 +1,6 @@
# VPC with one subnet, one VSI and a floating IP
provider "ibm" {
region = var.ibm_region
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/part2/ibm.tf
@@ -1,7 +1,6 @@
# VPC with one subnet, one VSI and a floating IP
provider "ibm" {
region = var.ibm_region
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down
1 change: 0 additions & 1 deletion vpc-terraform-multicloud/work/ibm.tf
Expand Up @@ -2,7 +2,6 @@
provider "ibm" {
region = var.ibm_region
ibmcloud_api_key = var.ibmcloud_api_key # /DELETE_ON_PUBLISH/d
generation = 2
}

resource "ibm_is_vpc" "vpc" {
Expand Down

0 comments on commit f30cae0

Please sign in to comment.