components
components copied to clipboard
Scripts do not fail properly
Describe the bug A failed AWS command does not fail properly (meaning CI builds 'succeed' / fail silently
To Reproduce
- Push any change which will fail due to AWS constraints e.g., CloudFront exists for CNAME
- AWS Script will fail e.g.,
error: CNAMEAlreadyExists: One or more of the CNAMEs you provided are already associated with a different resource.
- Script fails silently
Expected behavior Script fails and with it, any CI build
Screenshots N/A
Desktop (please complete the following information): N/A
Additional context Adding the following should catch a failed script:
#!/usr/bin/env bash
shopt -s failglob
set -eu -o pipefail
serverless
I can confirm this, having the same issue in Bitbucket pipelines.