Deploy a VPC with multiple subnets, public and private application load balancers, ACLs, public gateway, and virtual servers with security groups using Terraform.
-
Complete the IBM Cloud Terraform tutorial prior to running this example.
-
Obtain the variable values need in the variables.tf file.
-
Refer to IBM Cloud documentation on VPC for detailed information.
-
Deploy this solution to IBM Cloud.
- Change directory to the folder containing terraform files - ./infrastructure_code.
- Review the terraform files in that folder.
- Edit versions.tf and update the versions of Terraform and IBM Cloud Terraform Provider.
- Edit variables.tf and update the values for iaasapikey, ssh-key, and other variables as desired.
- Run Terraform (init, plan, apply).