This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, Fragment } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { compose } from 'react-apollo'; | |
import cookies from 'next-cookies'; | |
import jsCookie from 'js-cookie'; | |
import Script from 'react-load-script'; | |
import { StripeProvider, Elements } from 'react-stripe-elements'; | |
import Main from '../layouts/Main'; | |
import withData from '../lib/withData'; | |
import { viewerGraphql } from '../apollo/queries/viewer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this script queries aws logs with insights filtering on ERROR | |
# explanation of start and end times | |
#--start-time = unix timestamp 30 mins in the past | |
#--end-time = unix timestamp now | |
QUERY_ID=$(aws logs start-query \ | |
--profile $profile \ | |
--log-group-name /aws/lambda/aap-event-consumer-dev \ | |
--start-time `date -v-30M "+%s"` \ |