dev/aws
-
aws cognito 로그인후 credential 갱신 오류dev/aws 2019. 5. 7. 17:11
AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: IdentityPoolId, // your identity pool id here Logins: logins }); 위의 코드로 한 사용자로 로그인, 로그아웃 한 후 다른 사용자로 로그인을 하면 다음과 같은 오류가 발생됨. NotAuthorizedException NotAuthorizedException: Logins don't match. Please include at least one valid login for this identity or identity pool. 이를 아래와 같이 수정하면 오류 없이 동작함. const cred = new AWS.C..
-
-
aws cognito, api gateway, lambda 연동 예제dev/aws 2019. 4. 23. 16:12
https://medium.freecodecamp.org/how-to-secure-microservices-on-aws-with-cognito-api-gateway-and-lambda-4bfaa7a6583c How to secure Microservices on AWS with Cognito, API Gateway, and Lambda Handling auth is painful. But most applications need to authenticate users and control what resources they can access. Microservices… medium.freecodecamp.org https://github.com/csepulv/auth-api-demo csepulv/au..
-
aws lambda 스테이지 / 스테이지 변수 사용시 api gateway 권한 설정dev/aws 2019. 4. 23. 13:12
https://aws.amazon.com/ko/blogs/compute/using-api-gateway-stage-variables-to-manage-lambda-functions/ Using API Gateway stage variables to manage Lambda functions | Amazon Web Services Ed Lima, Cloud Support Engineer There’s a new feature on Amazon API Gateway called stage variables. Stage variables act like environment variables and can be used to change the behavior of your API Gateway methods..
-
AWS RDB MySQL 에 사용자 추가dev/aws 2019. 3. 27. 19:28
AWS 기능은 AWS 문서로. https://aws.amazon.com/ko/premiumsupport/knowledge-center/duplicate-master-user-mysql/ RDS MySQL에서 마스터 사용자 권한이 있는 다른 사용자 생성 MySQL을 실행하는 Amazon Relational Database Service(Amazon RDS) 인스턴스의 마스터 사용자와 동일한 권한이 있는 다른 사용자를 만들려고 합니다. 마스터 사용자를 복제하려면 어떻게 해야 합니까? MySQL을 실행하는 DB 인스턴스에는 단 한 명의 마스터 사용자가 있지만, 마스터 사용자와 동일한 모든 권한을 갖는 새로운 사용자를 생성할 수 있습니다. 마스터 권한이 있는 새로운 사용자를 생성하려면 다음 단계를 따르십시오 ..
-
aws lambda 사용시 mysql connection pool, context, callback 관련 문제dev/aws 2019. 1. 30. 11:29
aws lambda 에서 node, mysql 사용시 connection pool 을 핸들러 외부에서 생성하게 되면 connection.release() 를 호출하여도 람다 핸들러가 종료되지 않음. 핸들러에 전달되는 callback 을 호출하여도 종료되지 않으며 설정된 타임아웃이 지나면 호출이 실패로 반환됨. https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/nodejs-prog-model-handler.html aws 문서에도 callback 을 사용하도록 권장함. callback 과 함께 전달되는 context 가 있는데 구 버전의 node 에서 사용되던것인데 공식 문서에는 호출시 전달되는 정도등을 담고 있음.https://docs.aws.amazon.com/..