aws-samples / terraform-aws-sap-netweaver-on-hana Goto Github PK
View Code? Open in Web Editor NEWTerraform modules for deploying highly configurable SAP products on AWS.
License: MIT No Attribution
Terraform modules for deploying highly configurable SAP products on AWS.
License: MIT No Attribution
Hello Glenn,
unfornately there are still issues after cloning the actual version of terraform-aws-sap-netweaver-on-hana.
I decided to start with the sap_hana_simple_example.
First I adapted the file terraform.tfvars - file with the values of our AWS subscription.
Then I ran the following commands in the sap_hana_simple_example-Folder:
terraform init
terraform plan -out=s1.tfplan
But these errors occured:
Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 57, in resource "aws_ebs_volume" "xvdo_volume":
│ 57: map("Name", "${module.tags.values["Name"]}-hana_shared"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 80, in resource "aws_ebs_volume" "data_volumes":
│ 80: map("Name", "${module.tags.values["Name"]}-hana_data-${count.index}"))
│ ├────────────────
│ │ count.index is a number, known only after apply
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 104, in resource "aws_ebs_volume" "log_volumes":
│ 104: map("Name", "${module.tags.values["Name"]}-hana_log-${count.index}"))
│ ├────────────────
│ │ count.index is a number, known only after apply
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 129, in resource "aws_ebs_volume" "backup_volumes":
│ 129: map("Name", "${module.tags.values["Name"]}-hana_backup"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 152, in resource "aws_ebs_volume" "usr_sap_volumes":
│ 152: map("Name", "${module.tags.values["Name"]}-hana_usr_sap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on ....\modules\aws-sap-hana-host\ebs.tf line 176, in resource "aws_ebs_volume" "xvdr_volume":
│ 176: map("Name", "${module.tags.values["Name"]}-app_swap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.
╵
What went wrong?
Regards
Thomas
Hello,
when calling terraform validate the following errors occur:
Error: Error in function call
│
│ on modules\aws-sap-app-host\ebs.tf line 32, in resource "aws_ebs_volume" "xvdf_volume":
│ 32: map("Name", "${module.tags.values["Name"]}-app_usr_sap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-app-host\ebs.tf line 55, in resource "aws_ebs_volume" "xvdg_volume":
│ 55: map("Name", "${module.tags.values["Name"]}-app_swap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-ascs-host\ebs.tf line 31, in resource "aws_ebs_volume" "xvdg_volume":
│ 31: map("Name", "${module.tags.values["Name"]}-ascs_swap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-ascs-host\ebs.tf line 52, in resource "aws_ebs_volume" "xvdf_volume":
│ 52: map("Name", "${module.tags.values["Name"]}-ascs_usr_sap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-ascs-host\ebs.tf line 75, in resource "aws_ebs_volume" "xvdh_volume":
│ 75: map("Name", "${module.tags.values["Name"]}-app_sapmnt"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 57, in resource "aws_ebs_volume" "xvdo_volume":
│ 57: map("Name", "${module.tags.values["Name"]}-hana_shared"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 80, in resource "aws_ebs_volume" "data_volumes":
│ 80: map("Name", "${module.tags.values["Name"]}-hana_data-${count.index}"))
│ ├────────────────
│ │ count.index is a number, known only after apply
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 104, in resource "aws_ebs_volume" "log_volumes":
│ 104: map("Name", "${module.tags.values["Name"]}-hana_log-${count.index}"))
│ ├────────────────
│ │ count.index is a number, known only after apply
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 129, in resource "aws_ebs_volume" "backup_volumes":
│ 129: map("Name", "${module.tags.values["Name"]}-hana_backup"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 152, in resource "aws_ebs_volume" "usr_sap_volumes":
│ 152: map("Name", "${module.tags.values["Name"]}-hana_usr_sap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
╵
╷
│ Error: Error in function call
│
│ on modules\aws-sap-hana-host\ebs.tf line 176, in resource "aws_ebs_volume" "xvdr_volume":
│ 176: map("Name", "${module.tags.values["Name"]}-app_swap"))
│ ├────────────────
│ │ module.tags.values["Name"] will be known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use
│ tomap({ ... }) syntax to write a literal map.
What is not correct?
Regards
Thomas
Hello everyone,
after several adjustments of the variables, I can indeed apply the Terraform configuration to my AWS environment, but the part with the sap-provisioning module is not working because the module is missing.
Error: Unreadable module directory
│
│ Unable to evaluate directory symlink: lstat modules/sap-provisioning: no such file or directory"
Can you please help me with that issue?
Hello,
there is another issue. When calling terraform apply the following error occurs:
Error: error creating IAM policy s4h-tst-sap_hana_instance_default_policy-sbx: MalformedPolicyDocument: Resource must be in ARN format or "*".
│ status code: 400, request id: c0e495d0-e6d9-4dcb-9099-4c937f57b7f0
│
│ with module.hana_host.module.default_instance_role.aws_iam_policy.iam_policy[0],
│ on ....\modules_internal-modules\security\iam\iam-policy.tf line 19, in resource "aws_iam_policy" "iam_policy":
│ 19: resource "aws_iam_policy" "iam_policy" {
Where is the resource set?
Regards
Thomas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.