S3 upload fails endpoint issue

0

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
0

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_ACCESS_KEY_ID=<aws id>

AWS_SECRET_ACCESS_KEY=<your s3 access key>

Most likely this issue is coming because region is mismatching.

profile pictureAWS
EXPERT
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