Please visit my website and subscribe to my youtube channel for more articles
Thank you for Subscribing! If you have not, Subscribe now! DevOps4Solutions helps in providing end to end solution and…
In this blog, we will setup the Continuous Deployment to Amazon S3 using Bitbucket pipeline
- Docker image ( We are using docker customized image which has all the software which is required to run the application)
- We are using caches feature of bitbucket pipeline. We are doing custom caching for node_modules folder
- Automate version using npm version patch of our nodejs application and committing the package.json automatically using pipeline only. To do the auto git commit set the SSH public key setup. Generate the public key of your repository and copy that public key to your account SSH keys.
- Run the npm install command
- After build is successful, store the artifacts to S3 bucket with versions
- For deployment to production — make the trigger as manual.
- S3 bucket on AWS
- bitbucket-pipeline.yaml file
- AWS Secret Keys
- Environment Variables
How to setup a Continuous Deployment to Amazon S3 using Bitbucket pipeline
- Create a bitbucket-pipeline.yaml file at the root of your project
- For the specific bitbucket repository -> Go to Settings -> Add Repository variables
All the above variables are required to connect to s3 bucket from bitbucket pipeline.
3. We are setting up a Continuous Deployment to Amazon S3 using Bitbucket pipeline for nodejs application
Congratulations, we have successfully setup the Continuous Deployment to Amazon S3 using Bitbucket pipeline.