einaregilsson / beanstalk-deploy

GitHub action (and command line script) to deploy apps to Elastic Beanstalk
MIT License
621 stars 135 forks source link

Fails if `existing_bucket_name` is DNS-style. #82

Open acg opened 2 years ago

acg commented 2 years ago

I have existing_bucket_name: deploy.redacted.io in the config and get the following.

Beanstalk-Deploy: GitHub Action for deploying to Elastic Beanstalk.
https://github.com/einaregilsson/beanstalk-deploy

 ***** Input parameters were: ***** 
         Application: redacted
         Environment: redacted-env
       Version Label: d6d3b1309b6016cf3a22fd8c0eb703d6aeb665b2
 Version description: 
          AWS Region: us-west-1
                File: d6d3b1309b6016cf3a22fd8c0eb703d6aeb665b2.zip
Existing bucket Name: deploy.redacted.io
      AWS Access Key: 20 characters long, starts with A
      AWS Secret Key: 40 characters long, starts with 3
 Wait for deployment: false
  Recovery wait time: NaN

Uploading file to bucket deploy.redacted.io
Error: Deployment failed: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: deploy.redacted.io.s3.us-west-1.amazonaws.com. is not in the cert's altnames: DNS:s3-us-west-1.amazonaws.com, DNS:*.s3-us-west-1.amazonaws.com, DNS:s3.us-west-1.amazonaws.com, DNS:*.s3.us-west-1.amazonaws.com, DNS:s3.dualstack.us-west-1.amazonaws.com, DNS:*.s3.dualstack.us-west-1.amazonaws.com, DNS:*.s3.amazonaws.com, DNS:*.s3-control.us-west-1.amazonaws.com, DNS:s3-control.us-west-1.amazonaws.com, DNS:*.s3-control.dualstack.us-west-1.amazonaws.com, DNS:s3-control.dualstack.us-west-1.amazonaws.com, DNS:*.s3-accesspoint.us-west-1.amazonaws.com, DNS:*.s3-accesspoint.dualstack.us-west-1.amazonaws.com