This module is handles opinionated Netweaver configuration and deployment.
The resources/services/activations/deletions that this module will create/trigger are:
- Create a Compute Instance that will host ILB
- Create a Static IP Addresses for the Compute Instance
- Create a 2 Persitent Disks to host Netweaver's File systems
You can go in the examples folder complete working example. However, here's an example of how to use the module in a main.tf file.
module "gcp_ilb" {
source = "../../modules/ILB"
subnetwork = "${var.subnetwork}"
network = "${var.network}"
region = "${var.region}"
project_id = "${var.project_id}"
region_zone = "${var.region_zone}"
}
Make sure you've gone through the root Requirement Section
The compute instance created by this submodule will need to download SAP HANA from a GCS bucket in order install it. Follow the instructions below to ensure a successful installation:
- Create a new service account
- Grant this new service account the following permissions on the bucket where you uploaded netweaver file:
- Storage Object Viewer:
roles/storage.objectViewer
- Storage Object Viewer:
You may use the following gcloud command:
gcloud projects add-iam-policy-binding <project-id> --member=serviceAccount:<service-account-email> --role=roles/storage.objectViewer
- When configuring the module, use this newly created service account's email, to set the
service_account_email
input variable.