S3 upload fails endpoint issue


aws s3 cp command fails with error, Could not connect to the endpoint URL: https://my-bucket.s3...amazonaws.com/myfile.fpr The same command works when I tried directly ssh to the machine (Jenkins node). It only fails via the Jenkins pipeline. I also tried --source-region in the command.

1 Answer

Can you make sure of following three values are set up correctly in your jenkins environment or AWS-Jenkins credentials

AWS_DEFAULT_REGION=<region of bucket>


AWS_SECRET_ACCESS_KEY=<your s3 access key>

Most likely this issue is coming because region is mismatching.

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions