fix: bucket acls, readme
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
Collection of my dotfiles and supporting install scripts
|
Collection of my dotfiles and supporting install scripts
|
||||||
|
|
||||||
## Install
|
## Installer
|
||||||
|
|
||||||
[](https://github.com/andrejusk/dotfiles/actions/workflows/publish.yml)
|
[](https://github.com/andrejusk/dotfiles/actions/workflows/publish.yml)
|
||||||
|
|
||||||
wget https://dots.andrejus.dev/setup.sh -qO - | bash
|
wget https://dots.andrejus.dev/setup.sh -qO - | bash
|
||||||
|
|
||||||
## Stack
|
## The Stack
|
||||||
|
|
||||||
[](https://github.com/andrejusk/dotfiles/actions/workflows/ci.yml)
|
[](https://github.com/andrejusk/dotfiles/actions/workflows/ci.yml)
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ Tested and maintained against Debian buster
|
|||||||
### Editors
|
### Editors
|
||||||
|
|
||||||
- neovim (+ vim-plug)
|
- neovim (+ vim-plug)
|
||||||
- emacs
|
- spacemacs
|
||||||
|
|
||||||
### Languages
|
### Languages
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,24 @@ resource "google_storage_bucket_acl" "bucket_acl" {
|
|||||||
bucket = google_storage_bucket.bucket.name
|
bucket = google_storage_bucket.bucket.name
|
||||||
|
|
||||||
role_entity = [
|
role_entity = [
|
||||||
"READER:allUsers",
|
"OWNER:project-owners-${var.project_number}",
|
||||||
|
"OWNER:project-editors-${var.project_number}",
|
||||||
|
"READER:project-viewers-${var.project_number}",
|
||||||
"OWNER:user-${google_service_account.uploader_sa.email}",
|
"OWNER:user-${google_service_account.uploader_sa.email}",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "google_storage_default_object_acl" "default_acl" {
|
||||||
|
bucket = google_storage_bucket.bucket.name
|
||||||
|
|
||||||
|
role_entity = [
|
||||||
|
"READER:allUsers",
|
||||||
|
"OWNER:project-owners-${var.project_number}",
|
||||||
|
"OWNER:project-editors-${var.project_number}",
|
||||||
|
"READER:project-viewers-${var.project_number}",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
resource "google_storage_bucket_object" "index" {
|
resource "google_storage_bucket_object" "index" {
|
||||||
name = "index.html"
|
name = "index.html"
|
||||||
source = "${path.module}/public/index.html"
|
source = "${path.module}/public/index.html"
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ variable "project" {
|
|||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "project_number" {
|
||||||
|
type = string
|
||||||
|
description = "The numeric project ID"
|
||||||
|
}
|
||||||
|
|
||||||
variable "domain" {
|
variable "domain" {
|
||||||
description = "DNS name to serve static content"
|
description = "DNS name to serve static content"
|
||||||
type = string
|
type = string
|
||||||
|
|||||||
Reference in New Issue
Block a user