Example of a bare-minimum terraform script to setup an API Gateway endpoint that takes records and puts them into an SQS queue.
Start by creating the SQS queue.
resource "aws_sqs_queue" "queue" {| import { | |
| GetSecretValueCommand, | |
| SecretsManagerClient, | |
| } from '@aws-sdk/client-secrets-manager'; | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| // usage npx tsx taskdef-to-env.ts path/to/ecs/task-definition.json | |
| // outputs: /path/to/ecs/.env.local | |
| // expects aws to be configured (see aws-vault) |
Example of a bare-minimum terraform script to setup an API Gateway endpoint that takes records and puts them into an SQS queue.
Start by creating the SQS queue.
resource "aws_sqs_queue" "queue" {