2213 Commits

Author SHA1 Message Date
Philipp Muens
5e1548c4b1 Remove unnecessary return 2019-09-03 16:27:30 +02:00
Alex DeBrie
d23ed2972a Less Lodash, more eslint. 2019-09-03 09:20:45 -05:00
Alex DeBrie
843e10584d Prettier 2019-09-03 08:49:51 -05:00
Alex DeBrie
7cc8ea62f9 Allow for tail on GetAtt parsing 2019-09-03 08:43:36 -05:00
Mariusz Nowak
70446d94ed
Merge pull request #6618 from serverless/improve-aws-error-handling
Do not retry on AWS 403 errors
2019-09-03 10:24:36 +02:00
Mariusz Nowak
56b98e591b
Do not retry on 403 2019-09-02 18:00:57 +02:00
Philipp Muens
c1e0f3018a Fix tests after merging master into PR 2019-09-02 14:53:31 +02:00
Philipp Muens
1ad5e97bc2 Merge branch 'master' into gov-cloud 2019-09-02 14:48:58 +02:00
Mariusz Nowak
d48d2ee56d
Merge pull request #6608 from serverless/ensure-logs-for-custom-resource-lambdas
Support optional CloudWatch logs writing for custom resource lambdas
2019-09-02 14:42:16 +02:00
Philipp Muens
10d375481c Add regression test / Add support for log arns 2019-09-02 14:18:02 +02:00
Philipp Muens
c9b4f5d288 Add regression test / Prettify 2019-09-02 13:54:34 +02:00
maplion
1bc56036dd Fixing prettify issue 2019-09-01 18:53:48 -06:00
maplion
7c98ef9ec1 Fixes hardcoding of aws partition name in apigateway resourceArn to allow for a govcloud partition name of aws-us-gov in the case where one is trying to deploy to AWS GovCloud -- without this adjustment, serverless template fails when trying to deploy apigateway to AWS GovCloud 2019-09-01 15:53:15 -06:00
Gevorg A. Galstyan
9ba40e07a5 Fix API Gateway name not being resolved if the API Gateway resource is not in the main stack
Fix for https://github.com/serverless/serverless/issues/6607

+ a small fix in a function name
2019-08-30 14:50:05 +04:00
Mariusz Nowak
5b898c73d9
Support CloudWatch logs for custom resource lambdas 2019-08-29 13:11:49 +02:00
Mariusz Nowak
e2220c21fc
Rely on Object.assign 2019-08-29 13:00:12 +02:00
Mariusz Nowak
aa0514a951
Refactor logic 2019-08-29 12:46:51 +02:00
Mariusz Nowak
a474fadf01
Introduce functionName variable 2019-08-29 11:52:11 +02:00
Mariusz Nowak
279fefbe94
Rename var 2019-08-29 11:50:19 +02:00
Mariusz Nowak
2f03fc2643
Add tests for ensureApiGatewayCloudWatchRole 2019-08-28 11:29:49 +02:00
Mariusz Nowak
40e71b9efc
Ensure to handle API GW account via custom resource 2019-08-28 11:29:49 +02:00
Mariusz Nowak
44c7382a41
Refactor logic 2019-08-28 11:29:49 +02:00
Mariusz Nowak
6eee746718
Refactor to BbPromise.try 2019-08-28 11:29:49 +02:00
Mariusz Nowak
673f32d737
Seclude APIGW CloudWatch role setup 2019-08-28 11:29:48 +02:00
Mariusz Nowak
a43a263014
Refactor custom reosources to take provider as input 2019-08-28 11:29:45 +02:00
Mariusz Nowak
43344994b7
Truncate long custom resource function names 2019-08-27 15:25:16 +02:00
Mariusz Nowak
e628942b37
Make service name configurable 2019-08-27 15:05:04 +02:00
Mariusz Nowak
a2510e2e5f
Merge branch 'master' into improve-error-handling 2019-08-26 14:37:21 +02:00
Mariusz Nowak
a4768acdb1
Pass through error 2019-08-23 18:03:37 +02:00
Mariusz Nowak
377a7284af
Resolve Rest API id from CloudFormation template 2019-08-23 16:24:23 +02:00
Mariusz Nowak
6cc63326f1
Improve var name 2019-08-23 16:00:45 +02:00
Mariusz Nowak
4d64b9d21b
Merge pull request #6585 from serverless/improve-error-handling
Improve error reporting
2019-08-23 15:37:46 +02:00
Mariusz Nowak
566ef3c164
Allow unresolved Rest API id for tags 2019-08-23 14:00:13 +02:00
Mariusz Nowak
0b07508664
Ensure to use ServerlessError for user error 2019-08-23 13:50:50 +02:00
Kevin Tardif
ac7c0851b7 Naming improvements 2019-08-22 12:27:35 -04:00
Kevin Tardif
a039a7c4d0 Renamed fullData to fullExecutionData 2019-08-22 10:28:46 -04:00
Kevin Tardif
e2ed359f49 Added logs.executionLogging, no longer allowing OFF logLevel 2019-08-22 10:17:21 -04:00
Kevin Tardif
53d926df08 Updated field names to accessLogging, fullData, minor cleanups 2019-08-22 09:58:31 -04:00
Kevin Tardif
8314f4290c Added ability to enable/disable access logs, execution logs 2019-08-22 08:33:33 -04:00
Mariusz Nowak
094db72da8
Ensure AWS SDK is mocked for all tests 2019-08-21 21:42:46 +02:00
Mariusz Nowak
babc140c9e
Merge pull request #6543 from m-ronchi/external-websocket-deployment
Add support for external websocketApiId
2019-08-20 14:39:44 +02:00
Mariusz Nowak
94cac93fe8
Merge pull request #6548 from ktardif/apigw-respect-log-retention
AWS API Gateway set value of provider.logRetentionInDays for log group expiration
2019-08-20 13:59:59 +02:00
Kevin Tardif
b069e09e9f Updated logRetentionInDays checks 2019-08-19 13:35:06 -04:00
Mauro Ronchi
46d1e72720 extract long expression into local variable 2019-08-19 18:14:44 +02:00
Kevin Tardif
a1d2f7d090 getLogRetentionInDays now returns null if config value is unset 2019-08-16 08:28:45 -04:00
Mariusz Nowak
b2091b030e
Merge pull request #6545 from mokamoto12/fix-retained-layer-logical-id
Fix retained layer logical id
2019-08-16 10:47:30 +02:00
Mariusz Nowak
78a703a2eb
Merge pull request #6542 from ktardif/apigw-customize-log-level
AWS API Gateway customize log level
2019-08-16 10:38:07 +02:00
Kevin Tardif
462c936e7c Set AWS API Gateway RetentionInDays to value of provider.logRetentionInDays 2019-08-15 10:22:44 -04:00
mokamoto12
8b499c77b6 prettify the code 2019-08-15 00:03:21 +09:00
mokamoto12
5ba145973b Fix retained layer logical id 2019-08-14 23:27:08 +09:00