Open jarrod-mg opened 3 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Came across this looking to add a target for an appsync mutation. The docs are incredibly confusing around this from the eventbridge side. They mention using the "GraphQL endpoint URL", which I was surprised wasn't a thing when I describe my graphql API with the command line. The only real references I can find to that are in cloudformation and CDK land: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#aws-resource-appsync-graphqlapi-return-values
I would recommend that in addition to this EventBridge target update, that the appsync graphql resource be updated to provide that special snowflake ARN as well which seems needed to support this.
Also very sad that this wasn't a day 0 release with Terraform. This is a huge win for the serverless peeps.
Feel free to give a 👍 to my PR if you also find this event rule target useful 😁 https://github.com/hashicorp/terraform-provider-aws/pull/37773
Description
AWS Cloudwatch Event Targets can use AWS AppSync GraphQL APIs as a target. To do so, you need to set the ARN to, for example, "arn:aws:appsync:ap-southeast-2:0123456789012:endpoints/graphql-api/GRAPHQLENDPOINTIDSTRING", and also set a block "AppSyncParameters". The cloudformation inside a cloudwatch event rule looks like:
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-appsyncparameters.html
Would you like to implement a fix?
No