Skip to content

Instantly share code, notes, and snippets.

@jonbca
Created November 18, 2018 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonbca/1022b607a469a8514f88b33a521af5e2 to your computer and use it in GitHub Desktop.
Save jonbca/1022b607a469a8514f88b33a521af5e2 to your computer and use it in GitHub Desktop.
Failing deployment
service: catFoodTracker
custom:
tableName: CatFoodTable
provider:
name: aws
runtime: nodejs8.10
memory: 128
profile: default
environment:
Table: ${self:custom.tableName}
iamRoleStatements:
- Effect: Allow
Action:
- dynamoDb:DescribeTable
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource:
- 'Fn::GetAtt': [CatFoodTable, Arn]
package:
include:
- lib/**
- index.js
exclude:
- lib/**/*.test.js
excludeDevDependencies: true
functions:
catFoodTracker:
handler: index.handler
events:
- alexaSkill:
appId: amzn1.ask.skill.1893485d-3d95-4370-9f80-eefe16f03390
enabled: true
resources:
Resources:
CatFoodTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
KeySchema:
- AttributeName: userId
KeyType: HASH
TableName: ${self:custom.tableName}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment