Deploying static sites to Amazon S3 with Bitbucket Pipelines
Atlassian recently released a new feature for their hosted Bitbucket product called Pipelines. In this post we will show you how we use Pipelines to deploy a static site to AWS S3.
Requirements
- AWS Access Keys for accessing existing S3 Bucket.
- Bitbucket Repository with sample codebase for static website.( we have used the sample project from here).
Steps to achieve
- S3 bucket configuration
- Pipeline configuration
- Codebase configuration
S3 Bucket Configuration:
- Create a S3 bucket.
- Get access keys for accessing specific bucket.
- Open s3 bucket properties
- Enable website hosting.
- Point to index.html
- save
Pipeline Configuration
- Go to the settings for the respective repository.
- Enable pipeline.
- Here, we have chosen Node js docker image template
Comments
Post a Comment