[{"data":1,"prerenderedAt":87},["ShallowReactive",2],{"pattern-eventbridge-api-destinations-shopify":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":38,"level":39,"meta":40,"patternArch":41,"resources":64,"s3URL":6,"services":6,"stem":82,"testing":83,"videoId":6,"__hash__":86},"patterns\u002Fpatterns\u002Feventbridge-api-destinations-shopify.json","Amazon EventBridge API Destinations to Shopify",null,{"text":8},[9,10],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12,13],"content\u002Fcontributors\u002Fomid-khan.json","content\u002Fcontributors\u002Fcamilla-somtakoune.json",{"text":15},[16,17],"cd .\u002F9-shopify","sam deploy --guided","Create an EventBridge rule and API destination to route events to Shopify","json","AWS SAM",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-api-destinations","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-api-destinations","serverless-patterns\u002Feventbridge-api-destinations","9-shopify\u002FShopifyAPIDestination.yaml",{"headline":28,"text":29},"How it works",[30,31,32,33,34,35,36,37],"This pattern creates an API Destination for the Shopify Create Product API. Once deployed, the pattern allows a user to send events easily through EventBridge to create products in a Shopify store. The pattern creates the following resources: EventBridge Bus, EventBridge Connection, EventBridge API Destination, EventBridge Rule, IAM Role, and SQS Queue.","The EventBridge rule uses the API Destination and Connection as a target, SQS Queue as a DLQ, and the IAM role as its role. To send events go to the bus and send sample events.","To create a product, enter “MyShopifyApp” for the source, the bus created by the pattern for the Event Bus Name, and any call that follows the format for posting products as the detail (https:\u002F\u002Fshopify.dev\u002Fapi\u002Fadmin-rest\u002F2021-10\u002Fresources\u002Fproduct#post-products).","Before using the pattern a Shopify app and Admin Key with the appropriate permissions should be created. (https:\u002F\u002Fshopify.dev\u002Fapps\u002Fauth\u002Fadmin-app-access-tokens#step-1-create-and-install-the-app).","The following information is needed to run the template:","- Shopify Admin Key: To create the AUTH for the EventBridge Connection","- Shopify Store Name: To construct the call for the API destination","The IAM role created by the pattern only has the permission to allow InvokeApiDestination access to the EventBridge Rule.","YAML","200",{},{"icon1":42,"group":47,"icon2":51,"icon3":54,"line1":58,"line2":62},{"x":43,"y":44,"service":45,"label":46},20,50,"eventbridge","EventBridge rule",{"x":44,"y":43,"w":48,"h":49,"label":50},45,60,"API Destinations",{"x":49,"y":44,"service":52,"label":53},"eventbridge-connection.png","Connection",{"x":55,"y":44,"service":56,"label":57},85,"eventbridge-api.png","API",{"from":59,"to":60,"label":61},"icon1","icon2","",{"from":60,"to":63,"label":61},"icon3",{"headline":65,"bullets":66},"Additional resources",[67,70,73,76,79],{"text":68,"link":69},"Shopify: Create an app","https:\u002F\u002Fshopify.dev\u002Fapps\u002Fgetting-started\u002Fcreate",{"text":71,"link":72},"Shopify: Amazon EventBridge webhook delivery","https:\u002F\u002Fshopify.dev\u002Fapps\u002Fwebhooks\u002Fconfiguration\u002Feventbridge",{"text":74,"link":75},"Shopify: Access tokens for custom apps in the Shopify admin","https:\u002F\u002Fshopify.dev\u002Fapps\u002Fauth\u002Fadmin-app-access-tokens",{"text":77,"link":78},"Shopfy: Product resource","https:\u002F\u002Fshopify.dev\u002Fapi\u002Fadmin-rest\u002F2021-10\u002Fresources\u002Fproduct#top",{"text":80,"link":81},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F","patterns\u002Feventbridge-api-destinations-shopify",{"text":84},[85],"See the GitHub repo for detailed testing instructions.","5fW-6awx_kF4AzTie4OHew72ZwRkMV8DEG4EqldTVDA",1778846884346]