An error occurred (RequestTimeTooSkewed) when calling the PutObject operation
I am using Gitlab CI/CD with shared runner.
When I try to copy a zip to AWS S3 bucket, it fails due to time dirfference:
I tried setting AWS_DEFAULT_REGION in Gitlab but it does not resolve my problem.
$ aws s3 cp source/source.zip s3://$S3_BUCKET/source.zip upload failed: source/source.zip to s3://aws-ama-price-crawler/source.zip An error occurred (RequestTimeTooSkewed) when calling the PutObject operation: The difference between the request time and the current time is too large. ERROR: Job failed: exit code 1