Skip to content

[terraform][AWS] AWS terraform plan fails with ha_enabled=false #83

@mpagot

Description

@mpagot
ERROR:QESAPDEP:STDERR:          Error: Invalid index
ERROR:QESAPDEP:STDERR:
ERROR:QESAPDEP:STDERR:            on modules/hana_node/outputs.tf line 23, in output "hana_vip":
ERROR:QESAPDEP:STDERR:            23:   value = split("/", aws_route.hana-cluster-vip.0.destination_cidr_block)[0]
ERROR:QESAPDEP:STDERR:              ├────────────────
ERROR:QESAPDEP:STDERR:              │ aws_route.hana-cluster-vip is empty tuple

It can be reproduced using config.yaml like

provider: aws
apiver: 1
terraform:
  variables:
    aws_region: "eu-west-1"
    deployment_name: ####
    os_image: "suse-sles-sap-15-sp4-byos"
    os_owner: "amazon"
    private_key: "####"
    public_key: "####.pub"
    aws_credentials: "~/.aws/credentials"
    hana_ips: ["10.0.1.11", "10.0.2.12"]
    hana_cluster_fencing_mechanism: "sbd"
    hana_cluster_vip: "10.0.0.15"

ansible:
  hana_urls:
    - "#####"
    - "#####"
    - "#####"
  create:
    - registration.yaml -e reg_code=${REG_CODE} -e email_address=${EMAIL}
    - pre-cluster.yaml
    - sap-hana-preconfigure.yaml
    - cluster_sbd_prep.yaml
    - sap-hana-storage.yaml
    - sap-hana-download-media.yaml
    - sap-hana-install.yaml
    - sap-hana-system-replication.yaml
    - sap-hana-system-replication-hooks.yaml
    - sap-hana-cluster.yaml
  destroy:
    - deregister.yaml
  variables:
    REG_CODE: "#####"
    EMAIL: ""
    SAPCONF: true

Also consider that false is the default value in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions