Skip to content

$CONTAINER_NAME Env Variable does not exist in CodeBuild #29

@francobontorin

Description

@francobontorin

Hi there,
In your buildspec example you use $CONTAINER_NAME but I haven't found anywhere in the code where I could pass the container_name to my CodeBuild environment variable.

Unless I hardcode the container name directly on my build_spec the example is not working as is.

thank you

Activity

jdillon

jdillon commented on May 16, 2020

@jdillon

I just ran into this as well, but looks like you can easily solve this by defining CONTAINER_NAME:

  environment_variables = [
    {
      name: "CONTAINER_NAME"
      value: "replace-with-container-name"
    }
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jdillon@francobontorin

        Issue actions

          $CONTAINER_NAME Env Variable does not exist in CodeBuild · Issue #29 · cloudposse/terraform-aws-ecs-codepipeline