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" {
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 {run} from '@cycle/xstream-run' | |
import {makeDOMDriver, div, button} from '@cycle/dom' | |
import xs from 'xstream' | |
function main (sources) { | |
// Intent | |
const incAction$ = sources.DOM | |
.select('.inc').events('click') | |
.mapTo({type: 'INC'}) | |
const decAction$ = sources.DOM |