Skip to content

Commit d5de445

Browse files
authored
fix: appsync-ddb connector integ tests (#2938)
1 parent a1aee5d commit d5de445

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"LogicalResourceId": "NotesTable",
4+
"ResourceType": "AWS::DynamoDB::Table"
5+
},
6+
{
7+
"LogicalResourceId": "DynamoDBRole",
8+
"ResourceType": "AWS::IAM::Role"
9+
},
10+
{
11+
"LogicalResourceId": "AppSyncApi",
12+
"ResourceType": "AWS::AppSync::GraphQLApi"
13+
},
14+
{
15+
"LogicalResourceId": "ApiKey",
16+
"ResourceType": "AWS::AppSync::ApiKey"
17+
},
18+
{
19+
"LogicalResourceId": "ApiSchema",
20+
"ResourceType": "AWS::AppSync::GraphQLSchema"
21+
},
22+
{
23+
"LogicalResourceId": "NotesTableDataSource",
24+
"ResourceType": "AWS::AppSync::DataSource"
25+
},
26+
{
27+
"LogicalResourceId": "TriggerFunction",
28+
"ResourceType": "AWS::Lambda::Function"
29+
},
30+
{
31+
"LogicalResourceId": "TriggerFunctionRole",
32+
"ResourceType": "AWS::IAM::Role"
33+
},
34+
{
35+
"LogicalResourceId": "DataSourceToTableConnectorPolicy",
36+
"ResourceType": "AWS::IAM::ManagedPolicy"
37+
}
38+
]

integration/resources/templates/combination/connector_appsync_to_table.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
Resources:
22
NotesTable:
3-
Type: AWS::DynamoDB::Table
3+
Type: AWS::Serverless::SimpleTable
44
Properties:
5-
TableName: notes-table
6-
AttributeDefinitions:
7-
- AttributeName: UserId
8-
AttributeType: S
9-
KeySchema:
10-
- AttributeName: NoteId
11-
KeyType: HASH
5+
PrimaryKey:
6+
Name: NoteId
7+
Type: String
128

139
DynamoDBRole:
1410
Type: AWS::IAM::Role
1511
Properties:
16-
RoleName: appsync-dynamodb-role
1712
AssumeRolePolicyDocument:
1813
Version: '2012-10-17'
1914
Statement:

0 commit comments

Comments
 (0)