How to add org policies in bootstrap stage? #2896
-
@ludoo, @juliocc Currently, organization policies defined in the data/org-policies directory (e.g., compute.yaml, iam.yaml, etc.) are not included in the Terraform plan output by default. As a result, these policies are not being created or applied. What changes are required to ensure that these YAML files are properly included in the Terraform plan and that the organization policies are applied? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Org policies should be applied by default after you switch to use a service account. Unless you override the factories_config variable, the org policies shipped with FAST will be applied. You'll have to provide more details about your setup/environment for us to help you. |
Beta Was this translation helpful? Give feedback.
This is your issue. The variable bootstrap_user is only supposed to be used the first time you apply and it inhibits the creation of org policies (among other things). Remove that and use the generated providers file as explained bootstrap's README