Hi everyone, I've been trying to deploy the <eks a...
# ask-metaflow
v
Hi everyone, I've been trying to deploy the eks argo terraform example out-of-the-box but have run into an error with: • rds • lambda Has anyone else been running into this? (errors logged in 🧵)
RDS error
Copy code
Error: creating RDS DB Instance (metaflowmetaflowXXX): operation error RDS: CreateDBInstance, https response error StatusCode: 400, RequestID: XXX, api error InvalidParameterCombination: RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.small, Engine=postgres, EngineVersion=11.22, LicenseModel=postgresql-license. For supported combinations of instance class and database engine version, see the documentation.
with module.metaflow-datastore.aws_db_instance.this[0],
on .terraform/modules/metaflow-datastore/modules/datastore/rds.tf line 98, in resource "aws_db_instance" "this":
98: resource "aws_db_instance" "this" {
Lambda error:
Copy code
Error: creating Lambda Function (metaflowdb_migrateXXX): operation error Lambda: CreateFunction, https response error StatusCode: 400, RequestID: XXX, InvalidParameterValueException: The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use a supported runtime while creating or updating functions.
with module.metaflow-metadata-service.aws_lambda_function.db_migrate_lambda,
on .terraform/modules/metaflow-metadata-service/modules/metadata-service/lambda.tf line 115, in resource "aws_lambda_function" "db_migrate_lambda":
115: resource "aws_lambda_function" "db_migrate_lambda" {
a
yes I think postgres version and lambda runtime version need updating there
v
I tried updating them in the
<http://variables.tf|variables.tf>
files, but the terraform plan + apply appeared to be ignoring the variables that I had in there...for example lambda says to use "python3.12" but if you look at the error I get, it indicates that the lambda is trying to use "python3.7" šŸ˜• The same thing happened with postgres. I'm a terraform noob so I could definitely be doing something wrong though šŸ˜…
w
This is because the example in metaflow.tf uses external modules and these values are coming from those. You have two choices: 1. change 0.10.0 to 0.12.0 for all modules 2. replace the
source
directive with
"../../modules/$module_name"
(replace
$module_name
with the given module) so it will use the checked out modules from the same repo Do a
terraform init
after you do this.