1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ServerlessFrameworkでS3バケットを作成する。

Posted at

##概要
表題通り、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 $ 

バケットが作成されている事を確認。
スクリーンショット 2021-08-02 19.31.32.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?