Skip to content

Conversation

@kopachevsky
Copy link
Contributor

Example and tests for automatic project labeling.
Changed setup tf fixtures, sub folder creation added.

Relevant issues:
terraform-google-modules/terraform-google-vpc-service-controls#11
#27

Fixes #30

@kopachevsky kopachevsky force-pushed the feature/30/project-events branch from a8c93ff to b800956 Compare October 10, 2019 14:26
Example and tests for automatic project labeling.
Changed setup tf fixtures, sub folder creation added.
Added roles/owner to cloud function sa for subfolder.

Relevant issues:
terraform-google-modules/terraform-google-vpc-service-controls#11
terraform-google-modules#27

Fixes terraform-google-modules#30
@kopachevsky kopachevsky force-pushed the feature/30/project-events branch from b800956 to a8ded77 Compare October 10, 2019 14:37
@kopachevsky kopachevsky self-assigned this Oct 10, 2019
@kopachevsky kopachevsky marked this pull request as ready for review October 11, 2019 13:29
@kopachevsky
Copy link
Contributor Author

couple comments for reviewers:

  • gcp project created as terraform resource during folder event tests @aaron-lane suggested to do not bother migrate it to project factory form
  • to attach label to the project mentioned above by cloud function, I've attaching project owner role to folder not for project, otherwise race condition appears: cloud function start processing project event right after project created by TF and before corresponding IAM resource been created by TF

@morgante morgante merged commit f2bb448 into terraform-google-modules:master Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example and tests for project-related events

5 participants