variable plaintext_params {
type = map(string)
default = {}
description = <<EOF
Lambda@Edge does not support env vars, so it is a common pattern to exchange Env vars for values read from a config file.
So instead of using env vars like:
`const someEnvValue = process.env.SOME_ENV`
you would have lookups from a config file:
Compared to var.ssm_params, you should use this variable when you have non-secret things that you want very quick access
to during the execution of your lambda function.
EOF
}
複数行コメント
const config = JSON.parse(readFileSync('./config.json')) const someConfigValue = config.SomeKey