Skip to content

Instantly share code, notes, and snippets.

@thomasvds
Created April 21, 2018 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasvds/4c99a8ee6fe6cf53e527b24029429404 to your computer and use it in GitHub Desktop.
Save thomasvds/4c99a8ee6fe6cf53e527b24029429404 to your computer and use it in GitHub Desktop.
/*
* 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