Open OperationalFallacy opened 3 months ago
Also, looking at the amplify example page
import { aws_events } from "aws-cdk-lib"; <<--- this is incorrect import, should be import { CfnRule } from "aws-cdk-lib/aws-events"
// Create an EventBridge rule to route events to the AppSync API const rule = new aws_events.CfnRule(eventStack, "MyOrderRule"
Heyπ thanks for raising this! I'm going to transfer this over to our API repository for better assistance π
Hey @OperationalFallacy π , Thanks for raising this! I'm going to transfer this over to our Doc's repository for better assistance π
Environment information
Description
Regarding EventBridge example for data sources
https://docs.amplify.aws/react/build-a-backend/data/custom-business-logic/connect-eventbridge-datasource/
I'm trying to setup this example with L2 construct Rule (https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Rule.html)
This is the class, where api is
backend.data.resources.graphqlApi
I define data backend as this
The stack breaks.
Error: You must have AWS_IAM authorization mode enabled on your API to configure an AppSync target
This is the check on construct here, https://github.com/aws/aws-cdk/blob/v2.147.3/packages/aws-cdk-lib/aws-events-targets/lib/appsync.ts#L49
The modes on backend's app sync is empty.
Question: is it still possible to use L2 for the example you have? It seems to support all props. Was this the reason you've use Cnf?