Erik Erikson
3210aff617
Detect Successful Async Credential Loading
...
Check for the roleArn attribute on ini file loaded credentials. If that exists, then asynchronous (assume role) credentials are being loaded but they may not yet be received. Accept these as valid credentials and use the containing credentials object as the current credentials object.
Clean up the test data (fakeCredentials didn't need so much)
Create a test that verifies the async credential loading functionality
Create a test that ensures a non-existent profile one attempts to load does not load any credentials
Bump the version of the aws-sdk so that the modified aws-sdk will be demanded for proper handling of this feature.
2016-12-01 01:45:14 -08:00
Erik Erikson
0ddd4ec804
Credential Fixes Roundup
...
Merge fixes from both #2373 & #2695 , adding editorial suggestions and future-proofing them a bit (probably)
Clean up tests to broadly clean and restore process/test environment and simplify test code.
This work uncovered that we were returning profiles when no profile credentials were loaded. This seems inappropriate. The tests were modified to use the temporary credential file code that @stevecaldwell77 wrote, exclusively. This way there are actual credentials to load from the given profile.
I am not sure how to test the assume-role/asynchronous STS credential loading capability and would love some help making sure that is right
2016-11-29 03:16:47 -08:00
Erik Erikson
e317399da4
Merge remote-tracking branch 'journeyapps/fix-async-credentials' into credentials-fixes
2016-11-28 23:06:03 -08:00
Stephen Caldwell
acb3bb85c9
sandbox environment variables correctly in test
2016-11-28 09:58:29 -08:00
Stephen Caldwell
584884dc71
remove accidentally commited 'only'
2016-11-28 09:58:29 -08:00
Stephen Caldwell
a28da5c76a
add test for use of AWS_SHARED_CREDENTIALS_FILE envar
2016-11-28 09:58:29 -08:00
Stephen Caldwell
4969c74a17
add support for environment variable AWS_SHARED_CREDENTIALS_FILE when loading credentials
2016-11-28 09:58:29 -08:00
Doug Moscrop
fcbdf8e073
fix Linting
2016-11-25 20:07:32 -05:00
Eslam A. Hefnawy
697cd7ef9b
fixed logical id for lambda version
2016-11-25 18:40:59 +07:00
Eslam λ Hefnawy
5afaedf949
Merge pull request #2676 from ryansb/feature/tagVersions
...
On every deploy, publish a new Lambda function version
2016-11-25 18:33:48 +07:00
Philipp Muens
2dbfa37449
Cleanup after event.json removal
2016-11-24 20:08:04 +01:00
Maciej Winnicki
357ff616ab
remove event.json files from template. Closes #2786
2016-11-24 18:43:41 +01:00
Philipp Muens
3733f49d3d
Merge pull request #2719 from erikerikson/logical-ids-missed-details
...
Logical IDs Centralization Missed Details
2016-11-24 14:04:12 +01:00
Ryan S. Brown
29de5c2f7a
Move Lambda version ID generation out to naming.js
2016-11-24 08:04:07 -05:00
Ryan S. Brown
ed156155f7
Add Lambda fully qualified ARNs to expected output
2016-11-24 08:04:07 -05:00
Ryan S. Brown
1cc3c2c669
Create dummy files for service artifacts
2016-11-24 08:04:07 -05:00
Ryan S. Brown
719f11c4cc
Fix variable that had its name changed
2016-11-24 08:04:07 -05:00
Ryan S. Brown
0f86a9524e
Fix linting
2016-11-24 08:04:07 -05:00
Ryan S. Brown
20dee7cb1c
On every deploy, publish a new Lambda function version
...
Having Lambda deploys count as distinct function versions is really
helpful for logging, since it cleanly separates out logs between
sources.
This change adds:
- Calculation of SHA256 sums of artifacts
- An `AWS::Lambda::Alias` resource based on that SHA
- A dependency between each deployed function to its alias
- A stack output for each function `LogicalIdQualifiedArn` which is the
function ARN with the version appended.
2016-11-24 08:04:07 -05:00
Erik Erikson
6cc5d1364a
Merge branch 'master' into logical-ids-missed-details
2016-11-22 13:26:28 -08:00
Eslam A. Hefnawy
be9e098363
fix typo
2016-11-23 02:49:57 +07:00
Eslam A. Hefnawy
babed90e6c
fixed breaking change with apig resource with variable
2016-11-23 02:42:08 +07:00
Philipp Muens
8aad2372eb
Refactor test structure
...
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00
Philipp Muens
70e37028d2
Merge pull request #2763 from serverless/remove-deprecation-notice
...
removed cflogs deprecation notice
2016-11-22 08:06:36 +01:00
Eslam A. Hefnawy
7e2a2573d7
removed cflogs deprecation notice
2016-11-22 14:02:26 +07:00
Philipp Muens
ba56dc504e
Add environment variable config to templates
2016-11-21 17:53:43 +01:00
Nik Graf
d021e723e7
Merge pull request #2754 from serverless/get-stack-nae
...
bring back provider.getStackName()
2016-11-21 12:51:29 +01:00
Nik Graf
63d13a4453
Merge pull request #2757 from serverless/local-env-vars
...
add support for lambda env vars in invoke local
2016-11-21 12:35:00 +01:00
Eslam A. Hefnawy
0519987cb8
moved getStackName method into provider class
2016-11-21 17:48:39 +07:00
Eslam A. Hefnawy
5ed4c0d01d
add support for lambda env vars in invoke local
2016-11-21 17:42:13 +07:00
Philipp Muens
17286cb87a
Add test for overwriting environment variables
2016-11-21 10:45:05 +01:00
Eslam A. Hefnawy
632e86ec2e
fix typo
2016-11-21 16:42:38 +07:00
Eslam A. Hefnawy
4087921e0e
bring back probider.getStackName()
2016-11-21 16:33:52 +07:00
Nik Graf
71eb5a13b4
Merge pull request #2748 from braahyan/lambda-environment-variables
...
Lambda environment variables
2016-11-21 09:47:52 +01:00
Philipp Muens
26ff0fafdd
Add additional tests
2016-11-21 09:39:17 +01:00
Eslam λ Hefnawy
f3ca1fc68b
Merge pull request #2651 from laardee/deploy-offline
...
Fixes --noDeploy without credentials or internet connection
2016-11-21 15:33:29 +07:00
Philipp Muens
2d390edfce
Only create environment variables if config is given
2016-11-21 09:22:40 +01:00
Eslam λ Hefnawy
2cb4dc4dc5
Merge pull request #2732 from serverless/limit-permissions
...
Limited Lambda Permission for Events
2016-11-21 14:43:37 +07:00
bryan pedlar
e381e9e4ef
fixed linting issues
2016-11-19 21:55:56 -05:00
Bryan Pedlar
ca41f63c48
added validation of environment variable names
2016-11-19 21:40:10 -05:00
bryan pedlar
1f1c63dc7a
global environment variables are added appropriately
2016-11-19 21:38:46 -05:00
bryan pedlar
e79bb27222
fixed yet more linting errors
2016-11-19 19:30:21 -05:00
bryan pedlar
3fc632f4c1
fixed more linting errors
2016-11-19 19:27:32 -05:00
bryan pedlar
d4b16a12c2
fixed linting errors
2016-11-19 19:24:02 -05:00
bryan pedlar
94d93e3d62
added environment variable support
2016-11-19 18:35:26 -05:00
Erik Erikson
d15f4935c6
Merge branch 'master' into logical-ids-missed-details
2016-11-18 15:01:52 -08:00
Eslam A. Hefnawy
cfdac252da
relaxed apig permissions to be rest api scoped
2016-11-18 21:05:21 +07:00
Eetu Tuomala
1e2cbfd5e3
moves already created resolving to request and resolves noDeploy straight away
2016-11-18 14:52:52 +02:00
Eslam A. Hefnawy
ad2117423b
limited lambda permissions for events
2016-11-17 18:38:33 +07:00
Erik Erikson
61783191ee
"sdk" => "provider"
...
Change the legacy "sdk" moniker to "provider" in line with the (good, clarifying) class name changes in order to reduce potential future confusion.
2016-11-16 17:14:48 -08:00