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

fix: appsync-ddb connector integ tests #2938

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
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
@@ -0,0 +1,38 @@
[
{
"LogicalResourceId": "NotesTable",
"ResourceType": "AWS::DynamoDB::Table"
},
{
"LogicalResourceId": "DynamoDBRole",
"ResourceType": "AWS::IAM::Role"
},
{
"LogicalResourceId": "AppSyncApi",
"ResourceType": "AWS::AppSync::GraphQLApi"
},
{
"LogicalResourceId": "ApiKey",
"ResourceType": "AWS::AppSync::ApiKey"
},
{
"LogicalResourceId": "ApiSchema",
"ResourceType": "AWS::AppSync::GraphQLSchema"
},
{
"LogicalResourceId": "NotesTableDataSource",
"ResourceType": "AWS::AppSync::DataSource"
},
{
"LogicalResourceId": "TriggerFunction",
"ResourceType": "AWS::Lambda::Function"
},
{
"LogicalResourceId": "TriggerFunctionRole",
"ResourceType": "AWS::IAM::Role"
},
{
"LogicalResourceId": "DataSourceToTableConnectorPolicy",
"ResourceType": "AWS::IAM::ManagedPolicy"
}
]
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
Resources:
NotesTable:
Type: AWS::DynamoDB::Table
Type: AWS::Serverless::SimpleTable
Properties:
TableName: notes-table
AttributeDefinitions:
- AttributeName: UserId
AttributeType: S
KeySchema:
- AttributeName: NoteId
KeyType: HASH
PrimaryKey:
Name: NoteId
Type: String

DynamoDBRole:
Type: AWS::IAM::Role
Properties:
RoleName: appsync-dynamodb-role
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
Expand Down