Code Monkey home page Code Monkey logo

slot-c's Introduction

This project is based on the AWS Lambda zombie workshop done at the AWS Loft in London, April 2016. It is heavily modified and extended, with much of the code completely rewritten, and a modern CloudFormation template included.

To deploy:

  • Install and configure boto3 for your AWS account, ensure it has permissions to deploy Cloudformation stacks, including creating new IAM resources.

  • Make sure that the value of the TemplateContents.S3Bucket parameter in deploy_config.json is the name of a file whose contents is the name of an existing S3 bucket for which you have write permissions.

    It is done this way to prevent private information (bucket names, etc...) from being tracked in repositories.

  • Once deployed, navigate to the HTTPS URL for the index.html in the S3 bucket created as part of the stack.

    The URL will look something like: https://<S3RegionURLPart>.amazonaws.com/<BucketName>/index.html For us-east-1 (also called US Standard), the region part is s3, for all other regions, it is s3-<region>. Ref To find the bucket name using the AWS cli:

    aws cloudformation describe-stack-resource --stack-name <StackName> --logical-resource-id StaticContentBucket --query StackResourceDetail.PhysicalResourceId
    

To create a new stack:

python deploy.py create-stack

To update an existing stack:

python deploy.py update-stack --stack-name <StackName>

To explicitly only perform epilogue operations (Update Lamda code, push S3 files, etc...) even when a Cloudformation update is available, use --epilogue-only. Note that when the update-stack operation is performed, and the stack requires no updates, the end result is approximately equivalent to --epilogue-only.

python deploy.py update-stack --stack-name <StackName> --epilogue-only

slot-c's People

Contributors

riebart avatar

Watchers

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