diff --git a/mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml b/mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml index f45e2771b16d..13400e181be5 100644 --- a/mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml +++ b/mmv1/products/iambeta/WorkloadIdentityPoolProvider.yaml @@ -59,6 +59,11 @@ examples: vars: workload_identity_pool_id: 'example-pool' workload_identity_pool_provider_id: 'example-prvdr' + - name: 'iam_workload_identity_pool_provider_github_actions' + primary_resource_id: 'example' + vars: + workload_identity_pool_id: 'example-pool' + workload_identity_pool_provider_id: 'example-prvdr' - name: 'iam_workload_identity_pool_provider_oidc_basic' primary_resource_id: 'example' vars: diff --git a/mmv1/templates/terraform/examples/iam_workload_identity_pool_provider_github_actions.tf.tmpl b/mmv1/templates/terraform/examples/iam_workload_identity_pool_provider_github_actions.tf.tmpl new file mode 100644 index 000000000000..a891a7c59417 --- /dev/null +++ b/mmv1/templates/terraform/examples/iam_workload_identity_pool_provider_github_actions.tf.tmpl @@ -0,0 +1,26 @@ +resource "google_iam_workload_identity_pool" "pool" { + workload_identity_pool_id = "{{index $.Vars "workload_identity_pool_id"}}" +} + +resource "google_iam_workload_identity_pool_provider" "{{$.PrimaryResourceId}}" { + workload_identity_pool_id = google_iam_workload_identity_pool.pool.workload_identity_pool_id + workload_identity_pool_provider_id = "{{index $.Vars "workload_identity_pool_provider_id"}}" + display_name = "Name of provider" + description = "GitHub Actions identity pool provider for automated test" + disabled = true + attribute_condition = <