[cft] Reuse elasticsearch snapshot on upgrade (#128264)

Same-version snapshot upgrades have  been causing deployments
to become unhealthy.  For now, lets reuse the original snapshot while we
look for a workaround.
This commit is contained in:
Jonathan Budzenski 2022-03-22 11:18:19 -05:00 committed by GitHub
parent 4b47481566
commit b0c3aab4e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,6 @@ if [ -z "${CLOUD_DEPLOYMENT_ID}" ]; then
else
ecctl deployment show "$CLOUD_DEPLOYMENT_ID" --generate-update-payload | jq '
.resources.kibana[0].plan.kibana.docker_image = "'$CLOUD_IMAGE'" |
.resources.elasticsearch[0].plan.elasticsearch.docker_image = "'$ELASTICSEARCH_CLOUD_IMAGE'" |
(.. | select(.version? != null).version) = "'$VERSION'"
' > /tmp/deploy.json
ecctl deployment update "$CLOUD_DEPLOYMENT_ID" --track --output json --file /tmp/deploy.json &> "$JSON_FILE"