text: // Load AWS credentials from Environment Variables
  require('dotenv').config();
  
  // Attach AWS to global object
  global.AWS = require('aws-sdk');
  
  // Will hold runtime variables like ARNs to connect services
  global.aws_vars = {
    created: {} // Will hold AWS resources created to be exported as awsResourcesCreated.json
  };
  
  // Global variable that will prepend the name of an AWS resource 
  // with the environment said resource was created in. 
  global.envPrefix = '';
  if (process.env.NODE_ENV === 'development') {
    envPrefix = 'DEV_';
  } else if (process.env.NODE_ENV === 'test') {
    envPrefix = 'TEST_';
  }
  
  const { AWS } = global;
  const { exportEnvVarsFile, exportCreatedResourcesAsJson } = require('./utils');
  
  // Set APIs versions
  AWS.config.apiVersions = {
    dynamodb: '2012-08-10',
    cognitoidentityserviceprovider: '2016-04-18',
    cognitoidentity: '2014-06-30',
    iam: '2010-05-08',
    appsync: '2017-07-25',
  };
  
  const setupDynamoDB = require('./AWS/setup-scripts/dynamoDB');
  const setupCognito = require('./AWS/setup-scripts/cognito');
  const setupAppSync = require('./AWS/setup-scripts/appSync');
  const setupLambda = require('./AWS/setup-scripts/lambda');
  const elasticSearch = require('./AWS/setup-scripts/elasticSearch');
  
  const main = async () => {
    try {
      await setupDynamoDB();
      await elasticSearch();
      await setupLambda.createGetGooglePhotoReferenceFunction();
      await setupAppSync();
      await setupCognito();
  
      // Will output ./.env-react-app file to be moved inside ./react-app, 
      // renamed to ".env" and be used when launching the React App
      exportEnvVarsFile();
  
      // Will output awsResourcesCreate.json for use when cleaning up (aws-cleanup.js)
      exportCreatedResourcesAsJson();
    } catch (err) {
      console.log("[Error]:", err);
    }
  }
  
  main();
  