Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

METAFLOW_SERVICE_URL is empty in the metaflow_profile.json #53

Open
aimran-adroll opened this issue Mar 10, 2023 · 0 comments
Open

METAFLOW_SERVICE_URL is empty in the metaflow_profile.json #53

aimran-adroll opened this issue Mar 10, 2023 · 0 comments

Comments

@aimran-adroll
Copy link

aimran-adroll commented Mar 10, 2023

I use this minimal terraform to spin up infra with an existing vpc. I set metadata_service_enable_api_gateway = false. Unfortunately, the resulting metaflow_profile.json file had METAFLOW_SERVICE_URL set to "".

Is this expected? The METAFLOW_SERVICE_INTERNAL_URL was filled with the internal nlb url so thats okay.

Not surprisingly, i could not communicate with the metadata service. To fix it I had to manually fill it in.

locals {
  subnet_ids = ["foo","bar"]
}


data "aws_vpc" "main" {
  tags = {
    Name = "my-super-precious-vpc"
  }
}


module "metaflow" {
  source = "outerbounds/metaflow/aws"
  version = "0.9.2"

  resource_prefix = "metaflow"
  resource_suffix = "random"

  enable_step_functions = true
  subnet1_id            = local.subnet_ids[0]
  subnet2_id            = local.subnet_ids[1]
  vpc_cidr_blocks       = [data.aws_vpc.main.cidr_block]
  vpc_id                = data.aws_vpc.main.id
  with_public_ip        = true

  metadata_service_enable_api_gateway = false
  batch_type = "fargate"


  tags = {}
}
@aimran-adroll aimran-adroll changed the title METAFLOW_SERVICE_URL is empty in the config.json METAFLOW_SERVICE_URL is empty in the metaflow_profile.json Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant