Giter Club home page Giter Club logo

cygni-competence-aws1-ec2album's Introduction

Cygni AWS kompetensutveckling 2017

Pre-setup

  1. Log in to AWS console, on the eu-central-1 region. Region is hardcoded, so other regions will not work with this code.
  2. Setup IAM role 'ec2-with-s3': with AmazonS3FullAccess
  3. Create S3 bucket. Make sure that it is publicly readable. Make note of name, to be used below

In order to make the bucket open for public, you need to configure this bucket policy:

{
  "Version":"2012-10-17",
  "Statement":[{
    "Sid":"PublicReadGetObject",
    "Effect":"Allow",
    "Principal": "*",
    "Action":["s3:GetObject"],
    "Resource":["arn:aws:s3:::example-bucket/*"]
  }]
}

Note that "example-bucket" in the policy above needs to be replaced with the bucket name you're using.

Installation / Launch

  1. Create EC2 instance: Amazon AMI, t2.micro
  2. IAM role: 'ec2-with-s3'
  3. Advanced details: user data: paste install.sh
  4. Before moving on, paste name of S3 bucket to replace "ACTUALBUCKETNAME" in the user data
  5. Configure security group: add HTTP rule.
  6. Review and Launch + Launch
  7. Go to external IP and refresh. Expected time to launch is around 45-50 seconds.
  8. Upload images to the bucket
  9. Refresh ec2 url to see images

cygni-competence-aws1-ec2album's People

Contributors

robu avatar

Watchers

 avatar Emil Breding avatar Jakob Rönström avatar James Cloos avatar  avatar  avatar Per Rasmussen avatar MIkael Nitell avatar Pär Tjärnberg avatar

Forkers

jonatanwang

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.