Git Product home page Git Product logo

image_service's Introduction

ImageService

Lamby: Simple Rails & AWS Lambda Integration using Rack.

Welcome to your new Lambda project! This was created by Custom Ink's demo AWS SAM Cookiecutter project template for Ruby. See the full article here on Custom Ink's technology blog.

Lamby: Simple Rails & AWS Lambda Integration using Rack.

Setup

Follow these steps to get started:

$ ./bin/bootstrap
$ ./bin/setup
$ ./bin/test

To deploy your Lambda do the following. This command assumes you have the AWS CLI configured with credentials located within your ~/.aws directory.

$ STAGE_ENV=production ./bin/deploy

To test it works within the AWS Console, you can either send it a test event (Services -> Lambda -> MYLAMBDA -> Test) or if you opted for a basic HTTP API, you can see your Invoke URL by navigating to (Services -> API Gateway -> MYAPI -> Invoke URL) page.

CI/CD with GitHub Actions

In order for GitHub to deploy your Lambda, it will need permission to do so. An admin should do the first deploy, however afterward GitHub Actions can do updates for you.

Create a Deploy User

In the AWS Console -> IAM -> Users -> Add User.

  • Check "Programmatic access" option.
  • Select "Attach existing policies directly" option.
  • Select "AWSLambdaFullAccess" policy.
  • Copy the "Access key ID" and "Secret access key"

AWS Credentials

In your GitHub repo page. Click Settings -> Secrets -> Add a new secret

  • Name AWS_ACCESS_KEY_ID value (from step above)
  • Name AWS_SECRET_ACCESS_KEY value (from step above)

image_service's People

Contributors

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