I have added a elasticbeanstalk pipe to a bitbucket pipeline but I cannot find any documentation on how the zip file should be created or more details on whether the rest of the steps in my current deployment process(eb cli) will happen. Currently when I deploy using the eb cli this happens automatically. Is there a way to run the eb deploy script or something?
Hi @joel-ewg-org ,
You can see this example: https://bitbucket.org/bitbucketpipelines/example-aws-elasticbeanstalk-deploy/src/master/bitbucket-pipelines.yml to know how to create the zip file to pass it to the pipe. It's pretty simple!
This example is using multiple environments, that's why it's split into 'upload-only' and 'deploy-only' commands.
Regards,
Raul
Thanks! I see that there is a line that zips the file in the Build and Test step, which for some reason I didn't notice before. It would be helpful if there was some mention of this on the README here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
zip is not installed in the image i am using(ruby:2.6.1) for my test step. Can I use a different image for the deploy step or should I install in the deploy step script? If the later, any idea which pkg manager to use (yum, apt, etc)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @joel-ewg-org ,
You can totally use different images per step. You can find more details here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
Regards,
Raul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am successfully creating the zip file but receive this error:
An error occurred (SignatureDoesNotMatch) when calling the CreateMultipartUpload operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Any idea exactly what this refers to and how to fix it?
my pipline step is as follows:
- step:
image: atlassian/default-image:2
name: Deployment to Production
deployment: production
trigger: manual
script:
- zip xxx.zip -r * .[^.]*
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.0
variables:
AWS_ACCESS_KEY_ID: $BB_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $BB_AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: "us-east-1"
APPLICATION_NAME: "xxx"
ENVIRONMENT_NAME: "yyy-vpc"
ZIP_FILE: "xxx.zip"
VERSION_LABEL: "deploy-$BITBUCKET_BUILD_NUMBER"
WAIT: "true"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @joel-ewg-org ,
Weird! is it failing consistently? can you try regenerating your credentials and see if it is still happening?
Btw, Just a note: this command
zip xxx.zip -r * .[^.]*
would also zip the contents of your .git folder, which I wouldn't recommend it unless you need it.
Regards,
Raul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.