1. nodejs에서 aws-sdk 사용하기 # 프로젝트 초기화 $> npm init # aws-sdk 모듈 설치 $> npm install aws-sdk --save 2. bucket 생성 하기 createBucket.js const AWS = require('aws-sdk'); const ID = 'Access key Id'; const SECRET = ''; const BUCKET_NAME = ''; const s3 = new AWS.S3({ accessKeyId: ID, secretAccessKey: SECRET }); const params = { Bucket: BUCKET_NAME, CreateBucketConfiguration: { // Set your region here LocationC..
의존성 추가 com.amazonaws aws-java-sdk-s3 1.11.901 AwsS3 객체 - AwsS3.java public class AwsS3 { // Amazon-s3-sdk private AmazonS3 s3Client; final private String accessKey = "-"; // 액세스키 final private String secretkey = "-"; // 스크릿 엑세스 키 private Regions clientRegion = Regions.AP_NORTHEAST_2; // 한국 private String bucket = "-"; // 버킷 명 private AwsS3() { createS3Client(); } // singleton 으로 구현 static privat..
1. AWS SDK FOR PHP 설치 AWS에서는 AWS SDK를 설치할 수 있는 3가지 방법을 안내하고 있습니다. AWS SDK PHP 참고 : https://docs.aws.amazon.com/aws-sdk-php/v3/guide/getting-started/installation.html Installing the AWS SDK for PHP Version 3 - AWS SDK for PHP Using PHP with the Suhosin patch is not recommended, but is common on Ubuntu and Debian distributions. In this case, you might need to enable the use of phars in the suhosin..
1. 서버리스란?서버리스(Serverless)를 직역하자면, “서버가 없다” 라는 의미가 있습니다. 하지만, 사실상 서버가 없는건 아닙니다. 그저, 특정 작업을 수행하기 위해서 컴퓨터를 혹은 가상머신에 서버를 설정하고, 이를 통하여 처리 하는 것이 아님을 의미합니다. 그 대신에, BaaS (Backend as a Service) 혹은 FaaS (Function as a Service) 에 의존하여 작업을 처리하게 됩니다. BaaS 를 제공하는 서비스 중에선, Firebase, Parse (지금은 서비스종료 됨), Kinvey 등이 있고, FaaS 를 제공하는 서비스 중에선, AWS Lambda, Azure Functions, Google Cloud Functions 등이 있습니다. 2. 서버리스는 어떻게..