Git Product home page Git Product logo

demo-waiting-queue-backend's Introduction

demo-waiting-queue-backend

Serverless 기반 대기열의 백엔드 / 인프라 소스코드입니다.

  1. node.js 16이상이 필요합니다.
  2. yarn v2를 사용합니다.
npm install yarn -g
  1. AWS 크레덴셜이 로컬에 설치되어있어야 합니다. (AWS Configure로 IAM Credential 설정)

인프라 프로비전 방법

serverless_template.yml의 다음 부분에서 "sqs:DeleteMessage" 권한의 deny부분을 주석 처리해야 합니다. (코드에서는 기본적으로 주석처리되어 있습니다.)

RoleName: ${self:app}-DefaultLambdaExcutionRole    DefaultRole:
      Type: AWS::IAM::Role
      Properties:
        RoleName: ${self:app}-DefaultLambdaExcutionRole
        AssumeRolePolicyDocument:
          Version: "2012-10-17"
          Statement:
            - Effect: Allow
              Principal:
                Service:
                  - lambda.amazonaws.com
              Action: sts:AssumeRole
        ManagedPolicyArns:
          - arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess
        Policies:
          - PolicyName: myPolicyName
            PolicyDocument:
              Version: "2012-10-17"
              Statement:
                - Effect: Allow
                  Action:
                    - s3:*
                    - sqs:*
                    - logs:*
                    - execute-api:*
                    - states:*
                  Resource: "*"
                # - Effect: Deny
                #   Action:
                #     - sqs:DeleteMessage
                #   Resource:
                #     Fn::GetAtt:
                #       - WaitingQueue
                #       - Arn

이후 아래 명령어로 프로비전 합니다.

yarn 
yarn deploy --aws-profile [프로파일]

이후 해당 deny부분을 주석 해제 하고 다시 프로비전합니다.

yarn deploy --aws-profile [프로파일]

문의사항

기타 문의사항은 [email protected] 로 문의해주세요!

demo-waiting-queue-backend's People

Contributors

spark323 avatar

Stargazers

 avatar victor avatar Sang Yong Yi 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.