serverless
-
[번역] AWS SAM Template ConceptsInfra/AWS 2019. 8. 30. 13:14
원문 AWS SAM을 사용하여 Serverless 어플리케이션을 만들때, 주 목표는 Serverless 어플리케이션의 구조를 표현하는 AWS SAM 파일을 작성하는 것이다. AWS SAM 템플릿 파일은 YAML과 JSON으로 구성되어지며 AWS Serverless Model Specification 에서 확인 할 수 있다. Serverless 어플리케이션을 이루는 모든 AWS 리소스들의 선언을 위한 템플릿으로 사용한다. AWS SAM 템플릿은 AWS CloudFormation 템플릿의 확장이다. 그 말은, AWS CloudFormation 템플릿에서 선언할 수 있는 어떤 리소스들도 AWS SAM 템플릿에서 또한 선언 할 수 있다. 추가적으로, AWS SAM으로부터 제공되는 추가적인 리소스 타입들도 Ser..
-
React chat app with serverless websocket (미완)Infra/AWS 2019. 8. 28. 16:55
React 채팅 앱 & serverless websocket 예제사이트 serverless websocket 이해를 위해 websocket을 사용한 React 채팅 앱 예제를 따라해본다. 기본적으로 serverless websocket와 cognito 개념이 필요하다. 먼저 git에서 예제소스를 clone 한다. 구조는 크게 ./backend 와 ./frontend로 나뉘어져 있다. cognito User pool을 하나 만들어준다. ( 만드는 방법은 구글링) Pool id를 확인 할 수 있다. App clients 카테고리에 들어가면 App Client id를 확인 할 수 있다. 만약 없을 경우 새로운 App client를 생성하면 된다. backend us-east-1에서 테스트를 할 것이기때문에 r..
-
Announcing WebSocket APIs in Amazon API GatewayInfra/AWS 2019. 8. 27. 16:41
아래의 serverless websocket 튜토리얼을 진행하는데 https://codeburst.io/how-to-build-a-react-chat-app-with-aws-api-gateway-websockets-and-cognito-custom-authorizer-6f84f2da47ec How to build a React chat app with AWS API Gateway WebSockets, Custom Lambda Authorizer AWS announced the launch of a widely-requested feature: WebSockets for Amazon API Gateway few days ago… codeburst.io aws에서 제공하는 기본 예제를 선행학습으로 해야해서 ..
-
[삽질] aws-sam-cli 설치하기 on MacOSInfra/AWS 2019. 8. 27. 13:29
https://docs.aws.amazon.com/ko_kr/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html Installing the AWS SAM CLI on macOS - AWS Serverless Application Model Installing the AWS SAM CLI on macOS The following steps help you to install and configure the required prerequisites for using the AWS SAM CLI on your macOS host: Create an AWS account. Configure IAM permis..
-
[aws] CodeStar를 활용한 자동화 배포 환경 만들기.Infra/AWS 2019. 7. 31. 16:49
19.07.11 참고: http://labs.brandi.co.kr/2019/04/08/yangjh.html#ju22 AWS CodeCommit. 배포 자동화 환경 만들기(브랜치별 Pipeline 구성) 편집자 주: 함께 보면 좋아요!애플리케이션 개발부터 배포까지, AWS CodeStarCodeStar + Lambda + SAM으로 테스트 환경 구축하기AWS Lambda + API Gateway로 API 만들어보자 labs.brandi.co.kr AWS CodeStar(https://docs.aws.amazon.com/ko_kr/codestar/latest/userguide/welcome.html) AWS CodeStar란 무엇입니까? - AWS CodeStar AWS CodeStar란 무엇입니까? AW..
-
[aws] CodeStar로 serverless(lambda) node.js express 서버 배포하기Infra/AWS 2019. 7. 29. 17:16
기존 node.js 서버를 serverless로 배포하는 방법을 찾아보다 알게된 AWS CodeStar 아직 우리 서비스에 적용할지 말지는 결정되지 않았지만, 미리 한번 알아본다는 차원에서 서버를 적용시켜보았다. 1. aws CodeStar 페이지 접속 2. Node.js Express.js Lambda 템플릿 선택 3. 프로젝트명을 입력하고 저장소는 AWS CodeCommit으로 한다.(Github 사용시 Github 선택) 4. 생성된 저장소 주소를 복사한다. 5. git clone 멍령어로 프로젝트를 가져온다. 6.기존 (나의)node.js (express)프로젝트를 가져온다. 7.package.json 파일에 관련 모듈들을 추가한다. 8.루트 폴더에 있는 index.js 파일을 아래와같이 수정한다..