lambda_policy.tf 724 B

12345678910111213141516
  1. # main.tf only contains shared resouces across the module for purpose even the best pracites says
  2. # keep roles as small as possible and have three files main,variables,outputs.tf
  3. # So, the motivation in here make the code easily readable.
  4. # You can open the CIS Benchmark and go step by step to verify or understand how
  5. # the every other section works.
  6. # Also, another aventage of this is easy to update the module when the benchmark
  7. # gets any updates
  8. #
  9. # So that, we decided to break down the module into files per section.
  10. # every lambda function uses this assume role policy
  11. data "template_file" "iam_lambda_assume_role_policy" {
  12. template = file("${path.module}/templates/iam_lambda_assume_role_policy.json.tpl")
  13. }