{"id":952,"date":"2021-10-29T19:12:33","date_gmt":"2021-10-29T18:12:33","guid":{"rendered":"https:\/\/editjournal.redakt.eu\/faxmodem\/?p=952"},"modified":"2021-11-11T08:44:31","modified_gmt":"2021-11-11T08:44:31","slug":"connecting-aws-api-gateway-to-sqs","status":"publish","type":"post","link":"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/development\/cloud-serverless\/connecting-aws-api-gateway-to-sqs\/","title":{"rendered":"Connecting AWS API Gateway to SQS"},"content":{"rendered":"<p>An outline, leaving out the defaults and the obvious chores such as selecting the right region:<br \/>\n1. Create your SQS queue<br \/>\n2. Create a REST API, a resource and a method<br \/>\n   - Method Request: empty, no auth<br \/>\n   - Integration Request:<br \/>\n     - Type: AWS Service<br \/>\n     - AWS Service: Simple Queue Service (SQS)<br \/>\n     - AWS Subdomain: (empty)<br \/>\n     - HTTP method: POST<br \/>\n     - Path override: (Account ID)\/(Queue Name)<br \/>\n     - Execution role arn:aws:iam::(Account ID):role\/(Role Name)<br \/>\n     - HTTP Headers<br \/>\n       - Add `Content-Type` with `'application\/x-www-form-urlencoded'` (including the single quotes)<br \/>\n     - Mapping Templates<br \/>\n       - Request body passthrough: Never<br \/>\n       - Add mapping template: `application\/json` with `Action=SendMessage&amp;MessageBody=$input.body.replaceAll('\\n', '')`<br \/>\n         Here's `util` reference<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An outline, leaving out the defaults and the obvious chores such as selecting the right region: 1. Create your SQS queue 2. Create a REST API, a resource and a method &#8211; Method Request: empty, no auth &#8211; Integration Request: &#8211; Type: AWS Service &#8211; AWS Service: Simple Queue Service (SQS) &#8211; AWS Subdomain: (empty)&hellip; <a class=\"more-link\" href=\"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/development\/cloud-serverless\/connecting-aws-api-gateway-to-sqs\/\">Continue reading <span class=\"screen-reader-text\">Connecting AWS API Gateway to SQS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[778],"tags":[709,783,786],"class_list":["post-952","post","type-post","status-publish","format-standard","hentry","category-cloud-serverless","tag-aws","tag-aws-apigateway","tag-aws-sqs","entry"],"_links":{"self":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/comments?post=952"}],"version-history":[{"count":3,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/952\/revisions"}],"predecessor-version":[{"id":970,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/952\/revisions\/970"}],"wp:attachment":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/media?parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/categories?post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/tags?post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}