dev
-
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..
-
안드로이드에서 api gateway 호출시 urlencoding 문제dev/android 2019. 4. 5. 16:04
안드로이드에서 api gateway 호출시 url 에 멀티라인(\n) 문자가 들어갈 경우 다음과 같은 에러를 반환함. Could not parse request body into json: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n aws 포럼에서 발견한 내용으로 해결. https://forums.aws.amazon.com/thread.jspa?threadID=225001 불러오는 중입니다... \n 을 \\n 으로 변경.
-
async.apply 로 함수에 parameter 전달dev/web 2019. 4. 2. 15:33
async 호출 외부의 값을 함수 parameter 로 전달할때 async.apply 를 사용 waterfall 의 첫번째 함수에 전달할 파라메터나, 각 함수에 원하는 parameter 를 전달하기가 쉬움 https://caolan.github.io/async/docs.html#apply async - Documentation import applyEach from 'async/applyEach'; Applies the provided arguments to each function in the array, calling callback after all functions have completed. If you only provide the first argument, fns, then it will ..
-
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 인스턴스에는 단 한 명의 마스터 사용자가 있지만, 마스터 사용자와 동일한 모든 권한을 갖는 새로운 사용자를 생성할 수 있습니다. 마스터 권한이 있는 새로운 사용자를 생성하려면 다음 단계를 따르십시오 ..