Skip to content

Commit

Permalink
Fix variable order.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmo committed Dec 27, 2024
1 parent ff7e025 commit 192acb6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions blueprints/serverless/cloud-run-react-spa/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
# See the License for the specific language governing permissions and
# limitations under the License.

variable "bucket" {
variable "backend" {
type = object({
name = optional(string, "my-react-app")
random_suffix = optional(bool, true)
build_name = optional(string, "my-react-app-build") # Build bucket for CF v2
function_name = optional(string, "my-react-app-backend")
service_account = optional(string, "my-react-app-backend")
})
description = "Bucket settings for hosting the SPA"
description = "Backend settings"
default = {}
}

variable "backend" {
variable "bucket" {
type = object({
function_name = optional(string, "my-react-app-backend")
service_account = optional(string, "my-react-app-backend")
name = optional(string, "my-react-app")
random_suffix = optional(bool, true)
build_name = optional(string, "my-react-app-build") # Build bucket for CF v2
})
description = "Backend settings"
description = "Bucket settings for hosting the SPA"
default = {}
}

Expand All @@ -49,11 +49,6 @@ variable "nginx_image" {
default = "gcr.io/cloud-marketplace/google/nginx1:1.26"
}

variable "project_id" {
type = string
description = "Google Cloud project ID"
}

variable "project_create" {
description = "Parameters for the creation of a new project."
type = object({
Expand All @@ -63,6 +58,11 @@ variable "project_create" {
default = null
}

variable "project_id" {
type = string
description = "Google Cloud project ID"
}

variable "region" {
type = string
description = "Region where to deploy the function and resources"
Expand Down

0 comments on commit 192acb6

Please sign in to comment.