awslabs / benchmark-ai

Anubis (formerly known as Benchmark AI), measures the goodness of machine learning workloads
Apache License 2.0
16 stars 6 forks source link

Anubis-setup outputs var #1052

Closed ryansteakley closed 1 year ago

ryansteakley commented 4 years ago

Anubis-setup outputs

var.white_listed_cidr_blocks
Enter a value:

I suspect it might by caused by code-build-create-infrastructure.tf

environment_variable { name = "WHITE_LISTED_CIDR_BLOCKS" value = var.white_listed_cidr_blocks }

Similar env vars here but they don't output to the console.

gavinmbell commented 4 years ago

When I run

anubis-setup -- --region us-east-1 --prefix-list pl-xxxxxxx

I get...

    terraform apply "terraform.plan"

[09/02/2020 23:23:14 CEST] => Calling `terraform apply`
aws_secretsmanager_secret_version.secret-chime-hook-url[0]: Destroying... [id=arn:aws:secretsmanager:us-east-1:563267192464㊙️ChimeWebHookUrl-8tgrpQ|41CC6EC4-ABE0-4D79-A4B5-8B7574770CFA]
aws_secretsmanager_secret_version.secret-chime-hook-url[0]: Destruction complete after 0s
aws_secretsmanager_secret_version.secret-chime-hook-url[0]: Creating...
aws_codebuild_project.ci-create-infra: Modifying... [id=arn:aws:codebuild:us-east-1:563267192464:project/create-infrastructure]
aws_secretsmanager_secret_version.secret-chime-hook-url[0]: Creation complete after 2s [id=arn:aws:secretsmanager:us-east-1:563267192464㊙️ChimeWebHookUrl-8tgrpQ|F44CC3D9-7DD4-4B5E-A185-AF57A6E59C09]

Error: [ERROR] Error updating CodeBuild project (arn:aws:codebuild:us-east-1:563267192464:project/create-infrastructure): InvalidParameter: 1 validation error(s) found.
- missing required field, UpdateProjectInput.Environment.EnvironmentVariables[4].Value.

  on code-build-create-infrastructure.tf line 10, in resource "aws_codebuild_project" "ci-create-infra":
  10: resource "aws_codebuild_project" "ci-create-infra" {

Traceback (most recent call last):
  File "./anubis-driver.py", line 406, in <module>
    main()
  File "./anubis-driver.py", line 398, in main
    raise Exception(f"Failure calling `terraform plan`: {return_code}")
Exception: Failure calling `terraform plan`: 1

I believe this may be related. Can we set a default value to avoid the input prompt and make the this amenable to headless operation.