GithubHelp home page GithubHelp logo

sudiptadojo / static-site-s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahaydar/static-site-s3

0.0 0.0 0.0 595 KB

Host a static website on Amazon S3 using AWS CDK

HTML 7.60% JavaScript 23.99% TypeScript 68.41%

static-site-s3's Introduction

Host a static website on S3 using AWS CDK

example to use AWS CDK to define an S3 bucket hosting a static website

This is an example demonstrating the usage of AWS CDK to define an S3 bucket and its necessary permissions to host a static website.

Pre-requisites

  • Create an AWS account. If you're new to AWS services and want to explore, I highly recommend setting up a billing alarm so that you don't incur any charges.
  • Install NodeJS and npm -  https://nodejs.org/en/ - npm is installed automatically with NodeJS
  • Install the AWS command line interface
  • Configure AWS client: aws configure; you will be asked for access key ID, secret access key and aws region (details can be found here)
  • Install the AWS CDK globally: npm install -g aws-cdk

Installation

cd infrastructure & npm install

Usage example

Use the infrastructure folder as an example to define AWS resources (S3 in this case)

For more details check the following blog post

Meta

Ali Haydar – @YourTwitter

https://github.com/AHaydar/static-site-s3

static-site-s3's People

Contributors

ahaydar 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.