Skip to content

Commit

Permalink
updated the example
Browse files Browse the repository at this point in the history
  • Loading branch information
khanali21 committed Sep 11, 2019
1 parent 6cb1cfc commit b044582
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ resource "google_app_engine_standard_app_version" "myapp_v1" {
env_variables = {
port = "8080"
}
depends_on = ["google_storage_bucket_object.object"]

}
resource "google_app_engine_standard_app_version" "myapp_v2" {
version_id = "v2"
service = "myapp"
runtime = "nodejs10"
noop_on_destroy = true
entrypoint {
shell = "node ./app.js"
}
Expand All @@ -42,7 +42,7 @@ resource "google_app_engine_standard_app_version" "myapp_v2" {
env_variables = {
port = "8080"
}

depends_on = ["google_app_engine_standard_app_version.myapp_v1"]
}

resource "google_app_engine_service_split_traffic" "myapp" {
Expand All @@ -55,4 +55,15 @@ resource "google_app_engine_service_split_traffic" "myapp" {
v2 = 0.25
}
}
depends_on = ["google_app_engine_standard_app_version.myapp_v2"]
}
resource "google_app_engine_service_split_traffic" "myapp2" {
service_id = "${google_app_engine_standard_app_version.myapp_v2.service}"
migrate_traffic = false
split {
allocations = {
v1 = 1
}
}
depends_on = ["google_app_engine_service_split_traffic.myapp"]
}

0 comments on commit b044582

Please sign in to comment.