kokoichi206 / cloud-prac

0 stars 0 forks source link

Tips #14

Open kokoichi206 opened 2 years ago

kokoichi206 commented 2 years ago

複数行コメント

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:

const config = JSON.parse(readFileSync('./config.json')) const someConfigValue = config.SomeKey

  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
}
kokoichi206 commented 2 years ago

policy generator