name: ibm-iks-vpc
alias: cluster
type: terraform
description: Provisions an IBM Cloud IKS cluster
interfaces:
  - github.com/cloud-native-toolkit/automation-modules#cluster
  - github.com/cloud-native-toolkit/automation-modules#sync
tags:
  - iks
  - cluster
  - vpc
versions:
- platforms:
    - kubernetes
  dependencies:
    - id: resource-group
      refs:
        - source: github.com/cloud-native-toolkit/terraform-ibm-resource-group
          version: ">= 1.0.0"
    - id: subnets
      refs:
        - source: github.com/cloud-native-toolkit/terraform-ibm-vpc-subnets
          version: ">= 1.8.0"
    - id: kms_key
      refs:
        - source: github.com/cloud-native-toolkit/terraform-ibm-kms-key
          version: ">= 1.0.0"
      optional: true
    - id: sync
      refs: []
      interface: github.com/cloud-native-toolkit/automation-modules#sync
      optional: true
  variables:
    - name: resource_group_name
      moduleRef:
        id: resource-group
        output: name
    - name: vpc_name
      moduleRef:
        id: subnets
        output: vpc_name
    - name: vpc_subnet_count
      moduleRef:
        id: subnets
        output: count
    - name: vpc_subnets
      moduleRef:
        id: subnets
        output: subnets
    - name: kms_id
      moduleRef:
        id: kms_key
        output: kms_id
      optional: true
    - name: kms_key_id
      moduleRef:
        id: kms_key
        output: id
      optional: true
    - name: name_prefix
      scope: global
    - name: region
      scope: global
    - name: ibmcloud_api_key
      scope: global
    - name: name
      scope: module
    - name: worker_count
      scope: global
    - name: exists
      scope: module
    - name: sync
      moduleRef:
        id: sync
        output: sync
