Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to SimpleTable in gql integ tests #3279

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,10 @@ Resources:
ApiId: !GetAtt SuperCoolAPI.ApiId

DynamoDBPostsTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: id
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Type: AWS::Serverless::SimpleTable

DynamoDBPostsLogTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: id
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Type: AWS::Serverless::SimpleTable

SuperCoolAPI:
Type: AWS::Serverless::GraphQLApi
Expand Down Expand Up @@ -88,10 +68,8 @@ Resources:
DynamoDb:
PostsDataSource:
TableName: !Ref DynamoDBPostsTable
TableArn: !GetAtt DynamoDBPostsTable.Arn
PostsLogDataSource:
TableName: !Ref DynamoDBPostsLogTable
TableArn: !GetAtt DynamoDBPostsLogTable.Arn
Functions:
createPostItem:
Runtime:
Expand Down