-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make terraform more configurable (#1087)
* Make TUF bucket member configurable In some cases it may not be desireable to expose the TUF bucket to 'allUsers', and some GCP organizations may restrict it through the `constraints/storage.publicAccessPrevention` organization policy. Signed-off-by: Colleen Murphy <[email protected]> * Make DNS variables optional For development purposes, a DNS domain may not be necessary, and configuring one may be overkill for a short-lived proof of concept deployment, since the registration expiration is not tied to the life of the project. Signed-off-by: Colleen Murphy <[email protected]> * Make OAuth scopes configurable GKE applies the user.info access scope to standard clusters, in addition to the cloud-platform scope[1]. Because of this, if the scaffolding terraform is used to create a cluster, and then run again after completion, the one access scope specified in terraform will be in conflict with the two automatically assigned by GKE. Making this configurable ensures that terraform can be idempotent if the user provides the expected scopes for their cluster type. [1] https://cloud.google.com/kubernetes-engine/docs/how-to/access-scopes Signed-off-by: Colleen Murphy <[email protected]> * Make project_number optional project_number is only used for monitoring, so if monitoring is not enabled then it is not needed. Signed-off-by: Colleen Murphy <[email protected]> --------- Signed-off-by: Colleen Murphy <[email protected]>
- Loading branch information
Showing
11 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,12 @@ variable "tuf_preprod_bucket" { | |
description = "Name of GCS bucket for preprod/staged TUF root." | ||
} | ||
|
||
variable "tuf_bucket_member" { | ||
type = string | ||
description = "User, group, or service account to grant access to the TUF GCS buckets. Use 'allUsers' for general access, or e.g. group:[email protected] for granular access." | ||
default = "allUsers" | ||
} | ||
|
||
variable "storage_class" { | ||
type = string | ||
description = "Storage class for TUF root bucket." | ||
|