diff --git a/gcp-jinja-template/antmedia-instance-template.jinja b/gcp-jinja-template/antmedia-instance-template.jinja index f39aeef2..90495a5e 100644 --- a/gcp-jinja-template/antmedia-instance-template.jinja +++ b/gcp-jinja-template/antmedia-instance-template.jinja @@ -21,7 +21,7 @@ resources: boot: true autoDelete: true initializeParams: - sourceImage: projects/{{ env["project"] }}/global/images/ams-marketplace282 + sourceImage: projects/{{ env["project"] }}/global/images/{{ properties["image_id"] }} networkInterfaces: - network: $(ref.antmedia-vpc-network.selfLink) subnetwork: $(ref.origin-subnet.selfLink) @@ -53,7 +53,7 @@ resources: boot: true autoDelete: true initializeParams: - sourceImage: projects/{{ env["project"] }}/global/images/ams-marketplace282 + sourceImage: projects/{{ env["project"] }}/global/images/{{ properties["image_id"] }} networkInterfaces: - network: $(ref.antmedia-vpc-network.selfLink) subnetwork: $(ref.edge-subnet.selfLink) diff --git a/gcp-jinja-template/antmedia.jinja b/gcp-jinja-template/antmedia.jinja index 988008bd..8af57d07 100644 --- a/gcp-jinja-template/antmedia.jinja +++ b/gcp-jinja-template/antmedia.jinja @@ -18,6 +18,8 @@ limitations under the License. {% set mongodb_machine_type = "e2-standard-2" %} {% set origin_machine_type = "c2d-standard-4" %} {% set edge_machine_type = "c2d-standard-4" %} +{% set image_id = "ams-latest" %} + resources: @@ -32,6 +34,8 @@ resources: zone: {{ default_zone }} origin_machine_type: {{ origin_machine_type }} edge_machine_type: {{ edge_machine_type }} + image_id: {{ image_id }} + - name: antmedia-instance-group type: antmedia-instance-group-template.jinja properties: