Error When Deploying To AWS Elastic Beanstalk Servers

Issue

When using the CloudBees Amazon Web Services Deploy Engine Plugin to deploy an application the following error occurs:

com.cloudbees.plugins.deployer.exceptions.DeployException: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: Amazon S3; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: xxx) 
at com.cloudbees.plugins.deployer.engines.Engine.process(Engine.java:199)
at com.cloudbees.plugins.deployer.engines.Engine.perform(Engine.java:131)
at com.cloudbees.plugins.deployer.DeployPublisher.perform(DeployPublisher.java:101)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:744)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1053)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:693)
at hudson.model.Run.execute(Run.java:1770)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: Amazon S3; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: xxx), S3 Extended Request ID: xxx
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077)
at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:725)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:460)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:295)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3736)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3686)
at com.amazonaws.services.s3.AmazonS3Client.getBucketLocation(AmazonS3Client.java:711)
at com.amazonaws.services.s3.AmazonS3Client.getBucketLocation(AmazonS3Client.java:719)
at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl$DeployFileCallable.invoke(EngineImpl.java:296)
at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl$DeployFileCallable.invoke(EngineImpl.java:224)
at com.cloudbees.plugins.deployer.engines.Engine$FingerprintingWrapper.invoke(Engine.java:271)
at com.cloudbees.plugins.deployer.engines.Engine.process(Engine.java:193)

Environment

Resolution

Use the AWS-CLI Plugin as a workaround to deploy the application.

https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/chapter-aws-cli.html#aws-cli

A video to use the AWS CLI to push to beanstalk servers: https://www.youtube.com/watch?v=HhlQlKnTCY0

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.