mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
const path = require('path'),
|
|
AWS = require('aws-sdk');
|
|
|
|
// Require ENV lets, can also set ENV lets in your IDE
|
|
require('dotenv').config({path: path.join(__dirname, '.env'), silent: true});
|
|
|
|
process.env.DEBUG = '*';
|
|
|
|
let config = {
|
|
name: 'test-prj',
|
|
domain: 'test-prj.com',
|
|
notifyEmail: process.env.TEST_JAWS_EMAIL,
|
|
region: process.env.TEST_JAWS_REGION1,
|
|
region2: process.env.TEST_JAWS_REGION2,
|
|
stage: process.env.TEST_JAWS_STAGE1,
|
|
stage2: process.env.TEST_JAWS_STAGE2,
|
|
noExecuteCf: process.env.TEST_JAWS_EXE_CF != "true",
|
|
awsAdminKeyId: process.env.TEST_JAWS_AWS_ACCESS_KEY,
|
|
awsAdminSecretKey: process.env.TEST_JAWS_AWS_SECRET_KEY,
|
|
//Set following to an existing unit test project's ARNS, for test cases that need to interact w/ proj aws resources
|
|
//You can simply make a unittest project via `jaws project create` then set the env vars from the values in `project.json`
|
|
iamRoleArnLambda: process.env.TEST_JAWS_LAMBDA_ROLE,
|
|
};
|
|
|
|
AWS.config.credentials = new AWS.SharedIniFileCredentials({
|
|
profile: config.profile,
|
|
});
|
|
|
|
AWS.config.update({
|
|
region: config.region,
|
|
});
|
|
|
|
module.exports = config;
|