- IBM Cloud account
- IBM PowerVS Workspace
- A public access COS bucket containing an OS image.
- Navigate to the root directory of this repository.
- At least specify the values for the required variables in variables.tf by creating a terraform.tfvars file or supplying them as environment variables. (Optional)
- Run
terraform init
- Run
terraform apply
, optionally with -var flags to specify the values for the input variables if not previously specified. - Provide the values for the variables prompted at the command line which have not been correctly specified in any of the above steps 2 or 4.
- Type
yes
to confirm resource provisioning (Note: Resources will be charged as per IBM pricing). - Once the resources created above are no longer needed, run
terraform destroy
and confirm destruction of resources by enteringyes
at the prompt.
- Authenticate to IBM Cloud using the API key corresponding to the account in pre-requisite #1.
- Import the OS image from the COS bucket created as a part of pre-requisite #3 into the PowerVS Workspace specified in pre-requisite #2.
- Create a DHCP service in the PowerVS Workspace.
- Create 3 VMs connected to the DHCP service created as a part of the above step that boot using the imported OS image.