This file contains hidden or 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
| /* | |
| I was curious as to whether it was possible to make resources | |
| created using CDK constructs work with raw CloudFormation | |
| resources and vice versa. | |
| This aws-cdk app demonstrates a VPC and an ELB that belongs to it | |
| in different, dependant stacks, leveraging CFN outputs / imports, | |
| and leveraging CDK's method of passing information from one | |
| stack to another. | |
| */ |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
This file contains hidden or 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
| var AWS = require('aws-sdk'); | |
| var http = require('http'); | |
| var httpProxy = require('http-proxy'); | |
| var express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var stream = require('stream'); | |
| if (process.argv.length != 3) { | |
| console.error('usage: aws-es-proxy <my-cluster-endpoint>'); | |
| process.exit(1); |
This file contains hidden or 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
| // Awesomeness first | |
| const _ = require('lodash'); | |
| const proxyquire = require('proxyquire'); | |
| const sinon = require('sinon'); | |
| // Mocha + Chai are used here but feel free to use your test framework of choice ! | |
| const chai = require('chai'); | |
| const chaiAsPromised = require('chai-as-promised'); | |
| chai.use(chaiAsPromised); |
This file contains hidden or 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
| // Awesomeness first | |
| const _ = require('lodash'); | |
| const proxyquire = require('proxyquire'); | |
| const sinon = require('sinon'); | |
| // Mocha + Chai are used here but feel free to use your test framework of choice ! | |
| const chai = require('chai'); | |
| const chaiAsPromised = require('chai-as-promised'); | |
| chai.use(chaiAsPromised); |
This file contains hidden or 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
| // Awesomeness first | |
| const _ = require('lodash'); | |
| const proxyquire = require('proxyquire'); | |
| const sinon = require('sinon'); | |
| // Mocha + Chai are used here but feel free to use your test framework of choice ! | |
| const chai = require('chai'); | |
| const chaiAsPromised = require('chai-as-promised'); | |
| chai.use(chaiAsPromised); |
This file contains hidden or 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
| DELETE test | |
| PUT test | |
| { | |
| "mappings": { | |
| "test": { | |
| "properties": { | |
| "start": { | |
| "type": "date" | |
| }, |