Skip to content

Commit

Permalink
Chapter3 Step7
Browse files Browse the repository at this point in the history
Lambda Layersを導入
  • Loading branch information
cm-iwata committed Nov 9, 2019
1 parent e010711 commit f81f7ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ venv.bak/

# mypy
.mypy_cache/
layer
Empty file added layer/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ Globals:
Environment:
Variables:
PETS_TABLE: !Ref PetsTable
Layers:
- !Ref PetStoreAPILayer
Resources:
PetsTable:
Type: AWS::Serverless::SimpleTable
Properties:
PrimaryKey:
Name: id
Type: Number
PetStoreAPILayer:
Type: AWS::Serverless::LayerVersion
Properties:
Description: 'Lambda Layer for Pet Store API'
ContentUri: layer
CreatePet:
Type: AWS::Serverless::Function
Properties:
Expand Down

0 comments on commit f81f7ad

Please sign in to comment.