Giter Club home page Giter Club logo

host-your-static-website-on-amazon-s3-services's Introduction

goals

The project aims to host a static website on Amazon S3, automate deployment using CircleCI, and secure the site with an SSL certificate using AWS Certificate Manager. Additionally, Amazon CloudFront is used as a CDN to distribute the website globally.

Steps

  1. Set Up S3 Bucket: Log into AWS and navigate to the S3 service. Create a new bucket with a name corresponding to your domain (e.g., www.yourdomain.com). Enable static website hosting in the bucket properties and specify the index document (e.g., index.html).

  2. Configure CI/CD with CircleCI: Upload your website code to a GitHub repository. Create a .circleci directory in your repository and add a config.yml file. Write a CircleCI configuration to deploy the code to the S3 bucket using the AWS CLI.

  3. Set Up CircleCI: Connect CircleCI to your GitHub account and set up the project. Add environment variables in CircleCI for AWS access, including AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, and AWS_S3_BUCKET.

  4. Request and Validate SSL Certificate: Use AWS Certificate Manager to request a public SSL certificate for your domain. Validate the certificate by adding a CNAME record in your DNS provider (e.g., GoDaddy).

  5. Set Up CloudFront: Create a CloudFront distribution and select your S3 bucket as the origin. Use the SSL certificate obtained from AWS Certificate Manager for HTTPS support. Configure CloudFront settings, including origin access identity and bucket policy updates.

  6. Finalize and Test: Wait for DNS propagation and CloudFront distribution deployment. Access your website using the CloudFront domain name or your custom domain to ensure everything is working correctly. By following these steps, you can efficiently host a static website with automated deployment and secure it with an SSL certificate. This setup leverages AWS services to ensure scalability, security, and global distribution.

host-your-static-website-on-amazon-s3-services's People

Contributors

roctu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.