Created
April 21, 2018 10:51
-
-
Save thomasvds/4c99a8ee6fe6cf53e527b24029429404 to your computer and use it in GitHub Desktop.
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
/* | |
* Helper to remotely update the test Oracle endpoint | |
*/ | |
async function forceOracleStatus(status) { | |
const util = require('util') | |
const exec = util.promisify(require('child_process').exec) | |
const awsCliCommand = 'aws lambda update-function-configuration --profile cryptizens-lambdas-deployer --function-name CryptoRunTest --environment Variables={status=' + status + '}' | |
const { stdout, stderr } = await exec(awsCliCommand) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment