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
    1. Enable website hosting.
    2. Point to index.html
    3. save
Pipeline Configuration
  • Go to the settings for the respective repository.
  • Enable pipeline.
    1. Here, we have chosen Node js docker image template

Comments

Popular posts from this blog

Exploring the Google Stackdriver Error Reporting API

Singleton pattern using enum type

Customizing Tomcat – Hide ports from URL & Externalize a folder