Terraform module to install Portworx into an OCP/ROSA cluster on AWS, compatible with modules from https://modules.cloudnativetoolkit.dev
This module requires a Portworx configuration. Portworx is available in 2 flavors: Enterprise
and Essentials
.
Portworx Essentials is free forever, but only supports a maximum of 5 nodes on a cluster, 200 volumes, and 5TB of storage.
Portworx Enterprise requires a subscription (has 30 day free trial), supports over 1000 nodes per cluster, and has unlimited storage.
More detailed comparisons are available at: https://portworx.com/products/features/
Instructions for obtaining your portworx configuration are available at:
You can see an example in the Example usage section below.
The module depends on the following software components:
- terraform >= v0.15
- IBM Cloud provider >= 1.5.3
This module makes use of the output from other modules:
- Cluster - github.com/cloud-native-toolkit/terraform-ocp-login.git
Note: osb_endpoint
and user_id
are only required in portworx_config
if type
is essentials
. These values are not required for type enterprise
.
locals {
portworx_config = {
enable = true
cluster_id = var.px_cluster_id
user_id = var.px_user_id
osb_endpoint = var.px_osb_endpoint
type = "essentials"
enable_encryption = false
}
}
module "aws_portworx" {
source = "github.com/cloud-native-toolkit/terraform-aws-portworx.git"
region = var.region
access_key = var.access_key
secret_key = var.secret_key
cluster_config_file = module.dev_cluster.platform.kubeconfig
#Provide either path to the file using parameter `portworx_spec_file` or base64 encoding of the file content using parameter `portworx_spec`
#portworx_spec_file = var.portworx_spec_file
portworx_spec = var.portworx_spec
}
This module is derivative from https://github.com/ibm-hcbt/terraform-ibm-cloud-pak/tree/main/modules/portworx_aws