Skip to content

Commit

Permalink
CORE-260 support list of storage admins
Browse files Browse the repository at this point in the history
  • Loading branch information
tundeaoni committed May 3, 2024
1 parent 4a7dbe3 commit 5244d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions google/static-website/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {
}

resource "google_compute_backend_bucket" "static" {
project = var.project
project = var.project

name = var.bucket_name == "" ? "${local.website_domain_name_dashed}-bucket" : "${var.bucket_name}"
bucket_name = module.website.name
Expand All @@ -18,9 +18,7 @@ module "website" {
project_id = var.project
names = [local.website_domain_name_dashed]
set_admin_roles = true
admins = [
var.storage_admin,
]
admins = var.storage_admin
website = {
main_page_suffix = var.index_page
not_found_page = var.not_found_page
Expand Down
3 changes: 2 additions & 1 deletion google/static-website/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ variable "project" {

variable "storage_admin" {
description = "Bucket storage admin"
type = string
type = list(string)
default = []
}

variable "lb_address" {
Expand Down

0 comments on commit 5244d31

Please sign in to comment.