gradle-aws-plugin icon indicating copy to clipboard operation
gradle-aws-plugin copied to clipboard

Lambda environment configuration fails when using 'GString' for value

Open DALDEI opened this issue 8 years ago • 0 comments

lambda { 
   environment = [
      KEY:  "value/${with}/replacement"
  ] 
}

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':migrateSessionFunction'.
> Unable to marshall request to JSON: Unable to marshall request to JSON: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String


Succeeds:

lambda { 
     def String value = "value/${with}/replacement"
   environment = [ 
      KEY:  value
  ] 
}

DALDEI avatar Jan 08 '17 17:01 DALDEI