Skip to content

Commit

Permalink
Merge pull request #71 from terraform-google-modules/chore/rename_module
Browse files Browse the repository at this point in the history
chore: Rename auth module to authorization
  • Loading branch information
yunus authored May 13, 2020
2 parents 18bfdd6 + 858d6a4 commit 26cfb37
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/basic_view/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "bigquery_tables" {
dataset_labels = var.table_dataset_labels

# we provide the access control separately with another module, see bottom.
# Authorize_views_roles module has the capability of authorizing views
# Authorization module has the capability of authorizing views
# since access block in here conflicts with that, we only use the module.
access = []
}
Expand All @@ -52,8 +52,8 @@ module "bigquery_views_without_pii" {
# it is possible to pass the view access to a dataset resource but then we have a chicken-egg problem.
# the view wants first the tables are created, while the view access control needs the views
# so we create the authorized views after creating tables and views.
module "authorize_views_roles" {
source = "../../modules/authorize_views_roles"
module "authorization" {
source = "../../modules/authorization"
project_id = var.table_project_id
dataset_id = module.bigquery_tables.bigquery_dataset.dataset_id

Expand Down
4 changes: 2 additions & 2 deletions examples/basic_view/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ output "bigquery_views" {
}

output "authorized_views" {
value = module.authorize_views_roles.authorized_views
value = module.authorization.authorized_views
description = "Map of authorized views created"
}

output "access_roles" {
value = module.authorize_views_roles.authorized_roles
value = module.authorization.authorized_roles
description = "Map of roles assigned to identities"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module "dataset" {
}
module "add_authorization" {
source = "terraform-google-modules/bigquery/google//modules/authorize_views_roles"
source = "terraform-google-modules/bigquery/google//modules/authorization"
version = "~> 4.1"
dataset_id = module.dataset.bigquery_dataset.dataset_id
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 26cfb37

Please sign in to comment.