This example creates:
- PVS service
- ssh key
- 2 private networks for management network and backup network
- Imports stock sap catalogue images.
- Creates 1 or 2 cloud connections and attaches VPC and PowerVS subnets
- Option to Reuse Cloud connection to attach new PowerVS subnets
This example illustrates how to use the power-sap-infrastructure
module.
Name | Version |
---|---|
terraform | >=1.1 |
Name | Source | Version |
---|---|---|
pvs | ../../modules/power-sap-infrastructure | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
pvs_zone | IBM PowerVS Cloud Zone. Valid values: sao01,osa21,tor01,us-south,dal12,us-east,tok04,lon04,lon06,eu-de-1,eu-de-2,syd04,syd05 | string |
n/a | yes |
pvs_resource_group_name | Existing Resource Group Name | string |
n/a | yes |
prefix | Prefix for resources which will be created | string |
n/a | yes |
pvs_service_name | Name of PowerVS service which will be created | string |
n/a | yes |
pvs_sshkey_name | Name of PowerVS SSH Key which will be created | string |
power-service |
yes |
pvs_public_key | PowerVS SSH Public key data | string |
ssh-key-pvs |
yes |
pvs_image_names | List of Images to be imported into cloud account from catalog images | list(string) |
[ |
optional |
pvs_management_network | PowerVS Management Subnet name and cidr which will be created. | map |
{ |
yes |
pvs_backup_network | PowerVS Backup Network name and cidr which will be created. | map |
{ |
yes |
cloud_connection_reuse | Use existing Cloud connection to attach PVS subnets | bool |
false |
yes |
cloud_connection_name | Name of the Cloud connection which will be created/ Existing name of cloud connection to attach subnets | string |
false |
yes |
cloud_connection_count | Required number of Cloud connections. Ignore when Reusing. Maximum is 2 per location | string |
2 |
optional |
cloud_connection_speed | Speed in megabits per sec. Supported values are 50, 100, 200, 500, 1000, 2000, 5000, 10000. Required when creating new connection | string |
5000 |
optional |
pvs_tags | List of Tag names for PowerVS service | list(string) |
null |
optional |
vpc_region | IBM Cloud VPC Region.Required when creating new connection | string |
null |
optional |
vpc_names | Existing VPC Names which has to be attached to Cloud connection. Required when creating new connection. | list |
[] |
optional |
cloud_connection_gr | Enable global routing for this cloud connection.Can be specified when creating new connection | bool |
true |
optional |
cloud_connection_metered | Enable metered for this cloud connection. Can be specified when creating new connection | bool |
false |
optional |
ibmcloud_api_key | IBM Cloud Api Key | string |
null |
optional |
NOTE: We can configure all details in input.tfvars
terraform apply -var-file="input.tfvars"
For all optional fields, default values (Eg: null
) are given in variable.tf file. User can configure the same by overwriting with appropriate values.