ibm-cloud-architecture / terraform-icp-aws

This Terraform configurations uses the AWS provider to provision virtual machines on AWS to prepare VMs and deploy IBM Cloud Private on them. This Terraform template automates best practices learned from installing ICP on AWS at numerous client sites in production.
9 stars 30 forks source link

Autoscaling creation fails for Lambda with node6.10 #35

Open yasiumaster opened 5 years ago

yasiumaster commented 5 years ago

For ICP 3.1.2 , deploying new cluster with enable_autoscaling = "true" fails on creating Lambda function:

  • aws_lambda_function.icp_autoscale: Error creating Lambda function: InvalidParameterValueException: The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs10.x) while creating or updating functions

Possible solution like suggested:

resource "aws_lambda_function" "icp_autoscale" runtime = "nodejs6.10" --> "nodejs10.x"