-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into inspec-spanner-db
- Loading branch information
Showing
13 changed files
with
132 additions
and
10 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
Submodule terraform
updated
from 7ba8fe to 1ed9f4
Submodule terraform-beta
updated
from f9c270 to 057438
Submodule terraform-mapper
updated
1 files
+98 −0 | google/appengine_application_url_dispatch_rules.go |
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
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
templates/terraform/examples/app_engine_application_url_dispatch_rules_basic.tf.erb
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
resource "google_storage_bucket" "bucket" { | ||
name = "<%= ctx[:vars]['bucket_name'] %>" | ||
} | ||
|
||
resource "google_storage_bucket_object" "object" { | ||
name = "hello-world.zip" | ||
bucket = "${google_storage_bucket.bucket.name}" | ||
source = "./test-fixtures/appengine/hello-world.zip" | ||
} | ||
|
||
resource "google_app_engine_standard_app_version" "myapp_v1" { | ||
version_id = "v1" | ||
service = "myapp" | ||
runtime = "nodejs10" | ||
noop_on_destroy = true | ||
entrypoint { | ||
shell = "node ./app.js" | ||
} | ||
deployment { | ||
zip { | ||
source_url = "https://storage.googleapis.com/${google_storage_bucket.bucket.name}/hello-world.zip" | ||
} | ||
} | ||
env_variables = { | ||
port = "8080" | ||
} | ||
depends_on = ["google_storage_bucket_object.object"] | ||
|
||
} | ||
|
||
resource "google_app_engine_application_url_dispatch_rules" "service_rules" { | ||
# project = "my-project" | ||
dispatch_rules { | ||
domain = "*" | ||
path = "/default/*" | ||
service = "default" | ||
} | ||
dispatch_rules { | ||
domain = "*" | ||
path = "/myapp/*" | ||
service = "${google_app_engine_standard_app_version.myapp_v1.service}" | ||
} | ||
} |
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