Skip to content
Discussion options

You must be logged in to vote

In that member predicate, name is resolving to the outer name. You'll need to qualify it with this.name.

For example:

amends "Bar.pkl"

taskDefinition = (barTaskDefinition) {
  image = "bar:1.0.0" 
  containerDefinitions {
    [0] {
      name = "web"
      image = "app:latest"
      cpu = 512
      memory = 1024
      environment {
        [[this.name == "LOG_LEVEL"]] {
            value = "DEBUG"
        }
      }
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hozzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants