Skip to content

Commit

Permalink
fix(sftp): use correct vars (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
royal authored Dec 21, 2023
1 parent 3899e60 commit ec9bc1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcp/sftp-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ resource "google_compute_instance_group" "http" {
# HTTP/HTTPS load balancer w/ SSL
module "lb-http" {
source = "GoogleCloudPlatform/lb-http/google//modules/serverless_negs"
project = var.project_id
project = var.project
name = "${var.name}-lb"
version = "~> 9.0"

Expand Down
7 changes: 6 additions & 1 deletion gcp/sftp-server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ variable "project" {
description = "Name of your Google Cloud project"
}

variable "environment" {
type = string
description = "The environment you are running in (preview|preprod|prod)"
}


variable "region" {
type = string
description = "Name of your Google Cloud region"
Expand Down Expand Up @@ -46,5 +52,4 @@ variable "source_ranges" {
variable "domain" {
type = string
description = "Domain name to map to the server"
default = null
}
2 changes: 2 additions & 0 deletions test/gcp/sftp-server.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module "sftp-server" {
project = "infra-dev-sam-royal-38f6b201"
name = "test"
google_storage_bucket = "sftp"
domain = "example.com"
environment = "prod"
ssh-keys = "testuser:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxuXzhRJCVKOybQVrfEhzW/NnFO96+l7v1RiXatux5gmA7y6DKN2cQt9DjxcGMR+rRqHIgMdwn+ABjPjCi+2YkC8GsdpxFithdTgogvdxjQm+jzKDqNb3RfNAGMwMEP4+VcFFHhZ1uf66cbjiPRE2E601ICaFucTjNYdSaVOq6GyfxKAyYyLCvKfmbSFtNBngT49A0XcG3FccVQpKrovJWXq1Ok31phQiBM/pCxRRjQefeqvGcX/XED+AZCaIEGY1fr7jQZBRc0h5NnTYJoByGP5CVclrUPmBkxXLHzNYatyB8iUyCAXXJ62AQc+EN4mG6A/9/3NdR6WOQSbTqb6kBZbBJjrFwp3vcFVV50TOxfcMpZvYsiQrSiBlEhKnpWk27iSY05FWANbNyTqDh63b+p/RLifYAjCmgRtDnz58XCUKG7q2uI1xvVVW671EWVqGrHP/NfkwwopOtP1NUohQenNAzWIhEA44ONad5cX3qoJN1tpksAHpwp6pZjw3rIjO6k0VPdXvJe2RabCaREhaVlVN4US98Tum+JrNL+OKUAFHumq1xHtNzxvbS1/J/cd6NXKguWWYVh3ir9GDr1YbMnWZgBX4lbIQiF6FiOD82zoDT5WPEsAK2YiDgrvS/g1lVSZnPq4kSVpcwoy3wO5tenHmSUrKMql3PeAjdq7gVrw=="
source_ranges = [
"203.206.117.131" # nandos network
Expand Down

0 comments on commit ec9bc1e

Please sign in to comment.