Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Pass lambda environment variables as part of the function field #9

Open
betabandido opened this issue Jul 27, 2017 · 0 comments
Open

Comments

@betabandido
Copy link
Member

At this moment Terraform does not allow nested maps or lists with more than 2 levels of depth. Because of that, environment variables in the lambda module cannot be defined within the functions field. If that limitation gets solved, change the lambda module so that it supports the following syntax:

  functions = {
    LambdaTestHello = {
      handler = "package.say_hello"
    }
    LambdaTestPrintVars = {
      handler = "package.print_vars"
      variables = {
        foo = "FOO"
        bar = "BAR"
      }
    }
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant