Reminder that #terraform cannot handle S3 buckets with hyphens in their name and will fail with the very helpful "x509: certificate is valid for swiftobjectstorage... not bkt-state...." message

#SavedYouSomeTime

@dhoogfr Also that’s because AWS doesn’t allow that, it’s not just a Terraform thing. Dashes allowed not underscores.
@jredmond I encountered this on Oracle Cloud with a bucket with dashes in the name
Worked with underscores