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 requests | |
| from datetime import datetime, timedelta | |
| from airflow import DAG | |
| from airflow.models import Variable | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.operators.postgres_operator import PostgresOperator | |
| from airflow.hooks.postgres_hook import PostgresHook | |
| from airflow.contrib.operators.slack_webhook_operator import SlackWebhookOperator |
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" {