kando delete for elasticsearch BP
@@ -75,13 +75,4 @@ actions:
snapshot_prefix="{{ .ArtifactsIn.esBackup.KeyValue.path }}"
export AWS_SECRET_ACCESS_KEY="{{ .Profile.Credential.KeyPair.Secret }}"
export AWS_ACCESS_KEY_ID="{{ .Profile.Credential.KeyPair.ID }}"
- s3_cmd=(aws)
- {{- if .Profile.SkipSSLVerify }}
- s3_cmd+=(" --no-verify-ssl")
- {{- end }}
- {{- if .Profile.Location.S3Compliant.Endpoint }}
- s3_cmd+=(" --endpoint {{ .Profile.Location.S3Compliant.Endpoint }}")
- {{- end }}
- s3_path="s3://{{ .Profile.Location.S3Compliant.Bucket }}"
- s3_cmd+=(s3 rm "${s3_path}""${snapshot_prefix}"/ --recursive)
- ${s3_cmd[@]}
+ kando location delete --profile '{{ toJson .Profile }}' --path ${snapshot_prefix}
