How to use the @cumulus/aws-client/s3.getJsonS3Object function in @cumulus/aws-client

To help you get started, we’ve selected a few @cumulus/aws-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nasa / cumulus / packages / integration-tests / config.js View on Github external
const loadConfig = async () => {
  await loadEnvFile('./.env');
  verifyRequiredEnvironmentVariables();

  const configFromFile = loadConfigYmlFile(process.env.DEPLOYMENT);

  const buckets = await getJsonS3Object(
    configFromFile.bucket,
    `${configFromFile.stackName}/workflows/buckets.json`
  );

  return { ...configFromFile, buckets };
};