Private & Public Cloud/AWS3 Lambda 에서 사용가능한 S3 trigger event s3:ObjectCreated:* s3:ObjectCreated:Put s3:ObjectCreated:Post s3:ObjectCreated:Copy s3:ObjectCreated:CompleteMultipartUpload Amazon S3 APIs such as PUT, POST, and COPY can create an object. Using these event types, you can enable notification when an object is created using a specific API, or you can use the s3:ObjectCreated:* event type to request notification regardless of the API that was use.. 2020. 1. 14. EC2 -> S3 log stream 만들기 var S3StreamLogger = require('s3-streamlogger').S3StreamLogger; var s3stream = new S3StreamLogger({ bucket: "mys3bucket", access_key_id: "...", secret_access_key: "..." }); s3stream.write("hello S3"); access_key_id ,key 는 IAM 에서 생성후에 S3 권한추가 부분에 다음과 같이 추가 XXXXXXX --> bucket name 으로 변경 { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "logs.ap-northeast-2.am.. 2020. 1. 13. EC2 서버 nodejs 설치 node 관리 모듈 : nvm 설치 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash 환경변수에 등록 source ~/.nvm/nvm.sh nvm-sh/nvm Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - nvm-sh/nvm github.com node 최신모듈설치 nvm install node 원하는 버젼이 있으면(10.0.X( nvm install 10.0 설치된 node 버젼 조회 nvm list 2020. 1. 13. 이전 1 다음