Git Product home page Git Product logo

terraform-aws-sap-netweaver-on-hana's People

Contributors

amazon-auto avatar glenn-mendonca-tm avatar glennm1801 avatar guisesterheim avatar micah5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-aws-sap-netweaver-on-hana's Issues

Still issues with map function

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

"map" function was deprecated in Terraform v0.12 and is no longer available

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

sap-provisioning module missing

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?

iam_policy 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.