##概要
表題通り、ServerlessFrameworkでS3バケットを作成する。
例ではkkfactoryという名のBucketを作成します。
##実装
serverless.yml
service: s3make
provider:
name: aws
stage: dev
region: ap-northeast-1
functions:
resources:
Resources:
kkfactory:
Type: AWS::S3::Bucket
Properties:
BucketName: kkfactory
S3作成
~/develop/study/S3 $ serverless deploy
Serverless: Packaging service...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
........
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
......
Serverless: Stack update finished...
Service Information
service: s3make
stage: dev
region: ap-northeast-1
stack: s3make-dev
resources: 3
api keys:
None
endpoints:
None
functions:
None
layers:
None
~/develop/study/S3 $