Hello Everyone,
I’m just getting started with Serverless throught courses in serverless.com/learn.
I followed the course and also deployed the application from the course “Serverless for frontend devs”.
The problem that I’m facing is that I was able to see the bucket created in the s3 but I couldn’t find table in dynamodb and functions in lambda functions in the AWS console. But the application is working fine with the endpoints I generated.
Is there something that I’m missing? Thank you
here is the code:
service: xxxxx
app: xxxxx
org: xxxxxx
provider:
name: aws
runtime: python3.8
environment:
DYNAMODB_TABLE: serverlessjams-voteCounts
iamRoleStatements:
- Effect: "Allow"
Action:
- dynamodb:Scan
- dynamodb:UpdateItem
- dynamodb:PutItem
Resource: "arn:aws:dynamodb:*:*:table/${self:provider.environment.DYNAMODB_TABLE}"
functions:
recordSongVote:
handler: backend/record_song_vote.handler
events:
- http:
path: song/vote
method: post
cors: true
getSongVoteCounts:
handler: backend/get_song_vote_counts.handler
events:
- http:
path: votes
method: get
cors: true
resources:
Resources:
songsTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:provider.environment.DYNAMODB_TABLE}
AttributeDefinitions:
- AttributeName: songName
AttributeType: S
KeySchema:
- AttributeName: songName
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
plugins:
- serverless-finch
custom:
client:
bucketName: xxxxxxxx
distributionFolder: frontend
errorDocument: index.html