Skip to content

Commit

Permalink
Pin IAM modules to a specific version. (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeweidaniel authored Sep 18, 2024
1 parent bb070ba commit 185f699
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 20 deletions.
25 changes: 15 additions & 10 deletions examples/tfengine/generated/iam_members/iam_members/main.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions examples/tfengine/generated/team/additional_iam_members/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ terraform {
}

module "storage_bucket_iam_members" {
source = "terraform-google-modules/iam/google//modules/storage_buckets_iam"
mode = "additive"
source = "terraform-google-modules/iam/google//modules/storage_buckets_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.storage_bucket_iam_members :
idx => member
Expand All @@ -37,8 +38,9 @@ module "storage_bucket_iam_members" {
}

module "project_iam_members" {
source = "terraform-google-modules/iam/google//modules/projects_iam"
mode = "additive"
source = "terraform-google-modules/iam/google//modules/projects_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.project_iam_members :
idx => member
Expand All @@ -48,8 +50,9 @@ module "project_iam_members" {
}

module "folder_iam_members" {
source = "terraform-google-modules/iam/google//modules/folders_iam"
mode = "additive"
source = "terraform-google-modules/iam/google//modules/folders_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.folder_iam_members :
idx => member
Expand All @@ -59,8 +62,9 @@ module "folder_iam_members" {
}

module "organization_iam_members" {
source = "terraform-google-modules/iam/google//modules/organizations_iam"
mode = "additive"
source = "terraform-google-modules/iam/google//modules/organizations_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.organization_iam_members :
idx => member
Expand All @@ -70,8 +74,9 @@ module "organization_iam_members" {
}

module "service_account_iam_members" {
source = "terraform-google-modules/iam/google//modules/service_accounts_iam"
mode = "additive"
source = "terraform-google-modules/iam/google//modules/service_accounts_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.service_account_iam_members :
idx => member
Expand Down
5 changes: 5 additions & 0 deletions templates/tfengine/components/iam_members/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ limitations under the License. */ -}}

module "storage_bucket_iam_members" {
source = "terraform-google-modules/iam/google//modules/storage_buckets_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.storage_bucket_iam_members :
Expand All @@ -25,6 +26,7 @@ module "storage_bucket_iam_members" {

module "project_iam_members" {
source = "terraform-google-modules/iam/google//modules/projects_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.project_iam_members :
Expand All @@ -36,6 +38,7 @@ module "project_iam_members" {

module "folder_iam_members" {
source = "terraform-google-modules/iam/google//modules/folders_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.folder_iam_members :
Expand All @@ -47,6 +50,7 @@ module "folder_iam_members" {

module "organization_iam_members" {
source = "terraform-google-modules/iam/google//modules/organizations_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.organization_iam_members :
Expand All @@ -58,6 +62,7 @@ module "organization_iam_members" {

module "service_account_iam_members" {
source = "terraform-google-modules/iam/google//modules/service_accounts_iam"
version = "~> 7.4.0"
mode = "additive"
for_each = {
for idx, member in var.service_account_iam_members :
Expand Down

0 comments on commit 185f699

Please sign in to comment.