Erik Erikson
e11ec38b2c
Only set the accessKeyId/secretAccessKey/sessionToken when there is data to properly set them with.
...
If a profile prefix is supplied, use it non-contingently in all profile loading attempts, not as a separate profile.
2016-03-07 18:03:17 -08:00
Erik Erikson
0ceaf170e1
Merge remote-tracking branch 'upstream/v0.5' into v0.5-credential-loading-cleanup
2016-03-07 17:16:56 -08:00
Austen Collins
1926ee616e
EndpointDeploy: continue adding authorizer support
2016-03-07 15:36:28 -08:00
Austen Collins
afe371f330
EndpointDeploy, Endpoint: being adding support for custom authorizers
2016-03-07 14:48:19 -08:00
Egor Kislitsyn
cedf22b3c3
adds a test for the FunctionRollback action
2016-03-07 16:56:47 +07:00
Eslam A. Hefnawy
023fbf1c7c
pluginCreate: npm linking requires admin access. set it as an option instead
2016-03-05 19:19:36 +07:00
Eslam A. Hefnawy
fb2d6c55a4
projectCreate: replace domain option with bucket. Closes #733
2016-03-05 14:53:39 +07:00
Erik Erikson
3049b3a972
Change code generation of '*_PROFILE_[STAGE]' in Serverless artifacts to produce '*_[STAGE]_PROFILE' to align with prior changes.
...
Allow for a user supplied profile name prefix using the environment variable 'AWS_PROFILE_PREFIX' for use in loading credentials.
Ensure that profile names are lower case.
2016-03-04 22:12:07 -08:00
Erik Erikson
307a1c008b
Add missing underscores between the prefix and stage so that the result will be something like:
...
PREFIX_STAGE
rather than
PREFIXSTAGE
Thank you @hauboldj
2016-03-04 20:53:51 -08:00
Erik Erikson
f9ece6e58c
Merge remote-tracking branch 'upstream/v0.5' into v0.5-credential-loading-cleanup
...
# Conflicts:
# lib/ProviderAws.js
2016-03-04 18:10:57 -08:00
Erik Erikson
b88dc0a91e
Make the logic of credential extraction from the configuration, environment (raw), or environment (via profile) very explicit and clear. Use built in clases as appropriate. (actually, we're not doing that for loading the ~/.aws/credentials file [via http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SharedIniFileCredentials.html ] but maybe we should - going for minimum change)
...
Maintain optionality (but support for) session tokens.
Cover all possible environment prefixes consistently.
2016-03-04 17:45:59 -08:00
shawn robert grona
ffde94f7bb
functionrollback typo
2016-03-04 14:40:41 -08:00
Eslam A. Hefnawy
76d4cf1a54
CLI Testing: some fixes
2016-03-05 01:46:31 +07:00
Egor Kislitsyn
df02505ff3
Merge branch 'v0.5' of github.com:serverless/serverless into v0.5
...
# By Eslam A. Hefnawy
# Via Austen (1) and Eslam A. Hefnawy (1)
* 'v0.5' of github.com:serverless/serverless:
fixed function handler. Closes #729
2016-03-04 23:54:21 +07:00
Egor Kislitsyn
2211ee8dfe
adds FuntionRollback action
2016-03-04 23:53:59 +07:00
Egor Kislitsyn
e72d08eb05
fix FunctionRemove
2016-03-04 18:30:44 +07:00
Eslam A. Hefnawy
4b93b9646e
fixed function handler. Closes #729
2016-03-04 14:57:19 +07:00
Egor Kislitsyn
0caca03c81
fix typos in EndpointRemove
2016-03-04 12:04:55 +07:00
Egor Kislitsyn
6fac101831
fix EndpointRemove (prevents the root resources removal)
2016-03-04 11:42:17 +07:00
Kenneth Falck
a9e79a91cc
Support authorizerId parameter in s-function.json endpoints for CUSTOM authorizers
2016-03-04 02:23:22 +02:00
ac360
0caf219fd9
DashDeploy: slight changes to UI
2016-03-03 10:10:04 -08:00
ac360
b20180eb41
FunctionCreate: fix to show even/endpoint select if path is specified, Templates: fix comment in handler.js
2016-03-03 09:59:44 -08:00
ac360
086aafd10f
StageCreate: set env var after writing to admin.env
2016-03-03 09:44:46 -08:00
Eslam A. Hefnawy
e08ca473cb
removed comment
2016-03-03 20:50:44 +07:00
Eslam A. Hefnawy
c547ba5b2e
functionCreate: UX improvements. Closes #725
2016-03-03 20:49:44 +07:00
Egor Kislitsyn
16905539cb
fix EventRemove
2016-03-03 19:22:25 +07:00
Egor Kislitsyn
b599bd78d8
improves RegionRemove to remove functions ( #600 )
2016-03-03 19:13:01 +07:00
Egor Kislitsyn
2ef57b2d43
adds EndpointRemove, EventRemove and FunctionRemove ( #599 )
2016-03-03 19:11:54 +07:00
Egor Kislitsyn
8b45f91366
fixes DashDeploy, EndpointDeploy, ProjectInit, and some tests
2016-03-03 19:10:11 +07:00
Egor Kislitsyn
4e45bc3a97
adds Project.getAllRegionNames(stageName)
2016-03-03 19:08:30 +07:00
Eslam A. Hefnawy
47dea979d8
dashDeploy: list only functions in subfolder if cwd is subfolder
2016-03-03 13:44:04 +07:00
Eslam A. Hefnawy
60870fba0e
throw error for failed lambda deployments. Closes #655
2016-03-03 13:44:04 +07:00
Austen Collins
7d4f24066f
.gitingore: prevent tracking of stages that include 'dev'
2016-03-02 11:48:26 -08:00
Austen Collins
865cb2d645
ProjectInit: No longer auto-create stage and stage named 'dev'. Allow user to optionally create stage and name it anything
2016-03-02 11:45:21 -08:00
Austen Collins
89e054c845
Merge branch 'v0.5' of https://github.com/serverless/serverless into v0.5
2016-03-02 11:03:12 -08:00
Austen Collins
8b4a24a81d
ProviderAws: remove undefiend variable
2016-03-02 11:00:34 -08:00
Eslam A. Hefnawy
56efd97f8a
CLI testing: some fixes
2016-03-03 01:57:00 +07:00
Eslam A. Hefnawy
9f85c658a4
functionCreate: create endpiont or event
2016-03-03 01:57:00 +07:00
ac360
644bfc235b
FunctionDeploy: remove lambda backups
2016-03-02 09:30:14 -08:00
ac360
7926b326f1
remove unnecessary console.logs
2016-03-02 08:50:28 -08:00
ac360
3e42fbe4a6
AwsProvider: add credentails format fix
2016-03-02 08:48:28 -08:00
Egor Kislitsyn
22d56ec27b
fixes many actions
2016-03-02 18:55:19 +07:00
Egor Kislitsyn
5f0fd37818
fix functionCreate
2016-03-02 16:02:15 +07:00
Egor Kislitsyn
d439943801
fix ComponetCreate
2016-03-02 15:02:17 +07:00
ac360
99f95d6e53
ProviderAws: minor fixes
2016-03-01 21:43:10 -08:00
ac360
05af2e48e0
Tests: change credential loading to rely on profiles
2016-03-01 21:27:16 -08:00
Egor Kislitsyn
8236f0601a
fix cliPromptSelectStage
2016-03-02 12:22:39 +07:00
Egor Kislitsyn
234626baeb
fixes serializeRegion
2016-03-02 11:38:51 +07:00
Austen Collins
c1c5f0ae35
Change utils/new.js back to utils/index.js
2016-03-01 18:23:12 -08:00
Austen Collins
9f46e29654
Utils: add findProjectPath method
2016-03-01 18:21:43 -08:00