nimblehq / infrastructure-templates

For IaaS and PaaS as codes
MIT License
10 stars 0 forks source link

Fix: Wrong syntax for the policy document of full_iam_access_policy #246

Closed hoangmirs closed 9 months ago

hoangmirs commented 10 months ago

Issue

The following syntax is used for `iam_policy_document: https://github.com/nimblehq/infrastructure-templates/blob/46c082b480e23cb6fc05746e409e651bc865327b/templates/addons/aws/modules/iam_groups/data.tf#L125-L135

But we need it for iam_group_policy

=> Error when running plan on Terraform Cloud image

Expected

It should not raise that error when running

Steps to reproduce

  1. Generate a new project
  2. Run plan on Terraform Cloud
  3. Observe the error when provisioning bot account policy