aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
5.12k stars 2.15k forks source link

Missing dependencies in appsync-graphql-dynamodb example #698

Closed samputer closed 7 months ago

samputer commented 2 years ago

Describe the bug

Cannot tear down appsync-graphql-dynamodb due to missing dependencies on datasource.

Expected Behavior

Should be able to destroy stack when running cdk destroy

Current Behavior

cdk destroy yields the following error

16:24:39 | DELETE_FAILED        | AWS::AppSync::DataSource    | ItemsDataSource
Resolver for type Mutation and field delete associated with data source (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException; Request ID: ...

Reproduction Steps

In the typescript/appsync-graphql-dynamodb directory:

cdk deploy

followed by

cdk destroy

Observe error

Possible Solution

Add missing dependencies to all of the datasources. PR inbound.

Additional Information/Context

No response

CDK CLI Version

2.31.0 (build b67950d)

Framework Version

No response

Node.js Version

v16.13.1

OS

MacOS 12.4

Language

Typescript

Language Version

No response

samputer commented 2 years ago

PR raised: https://github.com/aws-samples/aws-cdk-examples/pull/699

peterwoodworth commented 2 years ago

Gave a review 🙂

awscamille commented 7 months ago

I think #1005 addresses that issue.

kaiz-io commented 7 months ago

Confirmed one is able to cdk deploy and cdk destroy.

github-actions[bot] commented 7 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.