· 6 years ago · Dec 25, 2019, 08:48 PM
1SLS_DEBUG=* serverless deploy
2Serverless: Load command interactiveCli
3Serverless: Load command config
4Serverless: Load command config:credentials
5Serverless: Load command config:tabcompletion
6Serverless: Load command config:tabcompletion:install
7Serverless: Load command config:tabcompletion:uninstall
8Serverless: Load command create
9Serverless: Load command install
10Serverless: Load command package
11Serverless: Load command deploy
12Serverless: Load command deploy:function
13Serverless: Load command deploy:list
14Serverless: Load command deploy:list:functions
15Serverless: Load command invoke
16Serverless: Load command invoke:local
17Serverless: Load command info
18Serverless: Load command logs
19Serverless: Load command metrics
20Serverless: Load command print
21Serverless: Load command remove
22Serverless: Load command rollback
23Serverless: Load command rollback:function
24Serverless: Load command slstats
25Serverless: Load command plugin
26Serverless: Load command plugin
27Serverless: Load command plugin:install
28Serverless: Load command plugin
29Serverless: Load command plugin:uninstall
30Serverless: Load command plugin
31Serverless: Load command plugin:list
32Serverless: Load command plugin
33Serverless: Load command plugin:search
34Serverless: Load command config
35Serverless: Load command config:credentials
36Serverless: Load command rollback
37Serverless: Load command rollback:function
38Serverless: Load command upgrade
39Serverless: Load command uninstall
40Serverless: Load command create_domain
41Serverless: Load command delete_domain
42Serverless: Load command login
43Serverless: Load command logout
44Serverless: Load command generate-event
45Serverless: Load command test
46Serverless: Load command dashboard
47platform-sdk fetching: POST https://api.serverless.com/core/tenants/wrgserws/applications/rhteg365y3eg/profileValue
48Serverless: Invoke deploy
49Serverless: Invoke package
50Serverless: Invoke aws:common:validate
51Serverless: Invoke aws:common:cleanupTempDir
52platform-sdk fetching: GET https://api.serverless.com/core/tenants/wrgserws/applications/rhteg365y3eg
53platform-sdk fetching: GET https://api.serverless.com/core/meta
54Serverless: Packaging service...
55Serverless: Excluding development dependencies...
56Serverless: Installing dependencies for custom CloudFormation resources...
57Serverless: Invoke aws:package:finalize
58Serverless: [AWS sts 200 0.676s 0 retries] getCallerIdentity({})
59platform-sdk fetching: POST https://api.serverless.com/malt/destinations/create
60Serverless: Invoke aws:common:moveArtifactsToPackage
61Serverless: Invoke aws:common:validate
62Serverless: [AWS s3 200 0.26s 0 retries] getBucketLocation({ Bucket: 'wrgserws-bibucket-lambda-functions' })
63Serverless: Safeguards Processing...
64Serverless: Safeguards Results:
65
66 Summary --------------------------------------------------
67
68 passed - allowed-regions
69 passed - allowed-stages
70 passed - allowed-runtimes
71 passed - no-secret-env-vars
72 warned - no-unsafe-wildcard-iam-permissions
73 warned - require-cfn-role
74 passed - framework-version
75
76 Details --------------------------------------------------
77
78 1) Warned - iamRoleStatement granting Resource='*'. Wildcard resources in iamRoleStatements are not permitted.
79 details: http://slss.io/sg-no-wild-iam-role
80 Prevent "*" permissions being used in AWS IAM Roles by checking for wildcards on Actions and Resources in grant statements.
81
82
83 2) Warned - no cfnRole set
84 details: http://slss.io/sg-require-cfn-role
85 Require the cfnRole option, which specifies a particular role for CloudFormation to assume while deploying.
86
87
88Serverless: Safeguards Summary: 5 passed, 2 warnings, 0 errors
89Serverless: Invoke aws:deploy:deploy
90Serverless: [AWS cloudformation 200 0.375s 0 retries] describeStacks({ StackName: '4yuetgoiwt35y-prd' })
91Serverless: [AWS s3 200 0.253s 0 retries] listObjectsV2({ Bucket: 'wrgserws-bibucket-lambda-functions',
92 Prefix: 'serverless/4yuetgoiwt35y/prd' })
93Serverless: [AWS s3 200 0.203s 0 retries] headObject({ Bucket: 'wrgserws-bibucket-lambda-functions',
94 Key: 'serverless/4yuetgoiwt35y/prd/1577306195296-2019-12-25T20:36:35.296Z/compiled-cloudformation-template.json' })
95Serverless: [AWS s3 200 0.209s 0 retries] headObject({ Bucket: 'wrgserws-bibucket-lambda-functions',
96 Key: 'serverless/4yuetgoiwt35y/prd/1577306195296-2019-12-25T20:36:35.296Z/custom-resources.zip' })
97Serverless: [AWS s3 200 0.203s 0 retries] headObject({ Bucket: 'wrgserws-bibucket-lambda-functions',
98 Key: 'serverless/4yuetgoiwt35y/prd/1577306195296-2019-12-25T20:36:35.296Z/HelloWorld.zip' })
99Serverless: [AWS lambda 200 0.251s 0 retries] getFunction({ FunctionName: '4yuetgoiwt35y-prd-HelloWorld' })
100Serverless: [AWS sts 200 0.526s 0 retries] getCallerIdentity({})
101Serverless: Uploading CloudFormation file to S3...
102Serverless: [AWS s3 200 0.311s 0 retries] putObject({ Body: <Buffer 7b 22 41 57 53 54 65 6d 70 6c 61 74 65 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 22 3a 22 32 30 31 30 2d 30 39 2d 30 39 22 2c 22 44 65 73 63 72 69 70 74 ... >,
103 Bucket: 'wrgserws-bibucket-lambda-functions',
104 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/compiled-cloudformation-template.json',
105 ContentType: 'application/json',
106 Metadata: { filesha256: 'XxtJsrvPz46XzBQJh2jJLxT02Zgp93GD0uOB2yRuq1U=' } })
107Serverless: Uploading artifacts...
108Serverless: Uploading service HelloWorld.zip file to S3 (80.64 KB)...
109Serverless: [AWS s3 200 0.399s 0 retries] putObject({ Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 5f 5f 70 79 63 61 63 68 65 5f 5f 2f 73 5f 50 6f 73 74 4d 65 ... >,
110 Bucket: 'wrgserws-bibucket-lambda-functions',
111 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/HelloWorld.zip',
112 ContentType: 'application/zip',
113 Metadata: { filesha256: 'vuuihKkwli/oXKabLqAQr5lsBn2UXVkytgzNfDlrRY8=' } })
114Serverless: Uploading custom CloudFormation resources...
115Serverless: [AWS s3 200 0.285s 0 retries] createMultipartUpload({ Bucket: 'wrgserws-bibucket-lambda-functions',
116 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/custom-resources.zip',
117 ContentType: 'application/zip',
118 Metadata: { filesha256: 'hT7wXwbnNP5hZr1pgLvLIa5qPvxUhyA0lml0v86Sfxg=' } })
119Serverless: [AWS s3 200 0.621s 0 retries] uploadPart({ Body: <Buffer 99 f1 54 a1 df 05 0b 63 b0 44 0d 76 90 e3 19 ad f3 e3 9c e2 7f 09 19 91 e4 ad 21 2d 40 da e7 79 41 ec ae 21 a7 33 23 3d ec 0f d2 43 96 71 73 6e 1d bc ... >,
120 ContentLength: 1376662,
121 PartNumber: 2,
122 Bucket: 'wrgserws-bibucket-lambda-functions',
123 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/custom-resources.zip',
124 UploadId: 'OmcDecniyzbfhdARga7yuSbyRBphuC82L4nl1OHv9kfbdjh5PTIdP6mYoItucZBG.abht9sx9tUOasYVsg63iSqyr_EHEqV4.7cvAdLKNq1Uezfk7XoJsqcDsx1ZUWn6' })
125Serverless: [AWS s3 200 0.84s 0 retries] uploadPart({ Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 61 a7 97 4f 00 00 00 00 00 00 00 00 00 00 00 00 09 00 00 00 52 45 41 44 4d 45 2e 6d 64 8d cd c1 09 80 30 0c 46 e1 7b a7 ... >,
126 ContentLength: 5242880,
127 PartNumber: 1,
128 Bucket: 'wrgserws-bibucket-lambda-functions',
129 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/custom-resources.zip',
130 UploadId: 'OmcDecniyzbfhdARga7yuSbyRBphuC82L4nl1OHv9kfbdjh5PTIdP6mYoItucZBG.abht9sx9tUOasYVsg63iSqyr_EHEqV4.7cvAdLKNq1Uezfk7XoJsqcDsx1ZUWn6' })
131Serverless: [AWS s3 200 0.248s 0 retries] completeMultipartUpload({ MultipartUpload:
132 { Parts:
133 [ { ETag: '"4d0b8d99bb01efa713498da3c0b53d38"', PartNumber: 1 },
134 { ETag: '"27481e73ad298e1c43b75967654a7026"', PartNumber: 2 },
135 [length]: 2 ] },
136 Bucket: 'wrgserws-bibucket-lambda-functions',
137 Key: 'serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/custom-resources.zip',
138 UploadId: 'OmcDecniyzbfhdARga7yuSbyRBphuC82L4nl1OHv9kfbdjh5PTIdP6mYoItucZBG.abht9sx9tUOasYVsg63iSqyr_EHEqV4.7cvAdLKNq1Uezfk7XoJsqcDsx1ZUWn6' })
139Serverless: Validating template...
140Serverless: [AWS cloudformation 200 0.467s 0 retries] validateTemplate({ TemplateURL: 'https://s3.amazonaws.com/wrgserws-bibucket-lambda-functions/serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/compiled-cloudformation-template.json' })
141Serverless: Updating Stack...
142Serverless: [AWS cloudformation 200 0.663s 0 retries] updateStack({ StackName: '4yuetgoiwt35y-prd',
143 Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
144 Parameters: [ [length]: 0 ],
145 TemplateURL: 'https://s3.amazonaws.com/wrgserws-bibucket-lambda-functions/serverless/4yuetgoiwt35y/prd/1577306401995-2019-12-25T20:40:01.995Z/compiled-cloudformation-template.json',
146 Tags:
147 [ { Key: 'STAGE', Value: 'prd' },
148 { Key: 'Contact', Value: 'Tomasz Szuster' },
149 { Key: 'Project', Value: 'IoTMonitoring' },
150 { Key: 'CodeName', Value: 'rhteg365y3eg' },
151 [length]: 4 ] })
152Serverless: Checking Stack update progress...
153Serverless: [AWS cloudformation 200 0.51s 0 retries] describeStackEvents({ StackName: 'arn:aws:cloudformation:eu-west-1:114761073379:stack/4yuetgoiwt35y-prd/df00c6b0-a397-11e9-a261-0a99a68566c4' })
154.....Serverless: [AWS cloudformation 200 0.636s 0 retries] describeStackEvents({ StackName: 'arn:aws:cloudformation:eu-west-1:114761073379:stack/4yuetgoiwt35y-prd/df00c6b0-a397-11e9-a261-0a99a68566c4' })
155......Serverless: [AWS cloudformation 200 0.518s 0 retries] describeStackEvents({ StackName: 'arn:aws:cloudformation:eu-west-1:114761073379:stack/4yuetgoiwt35y-prd/df00c6b0-a397-11e9-a261-0a99a68566c4' })
156.....
157Serverless: Stack update finished...
158Serverless: Invoke aws:info
159Serverless: [AWS cloudformation 200 0.216s 0 retries] describeStacks({ StackName: '4yuetgoiwt35y-prd' })
160Serverless: [AWS cloudformation 200 0.24s 0 retries] listStackResources({ StackName: '4yuetgoiwt35y-prd' })
161Serverless: [AWS cloudformation 200 0.281s 0 retries] describeStackResources({ StackName: '4yuetgoiwt35y-prd' })
162Serverless: [AWS apigateway 200 0.265s 0 retries] getApiKey({ apiKey: '682f1g7rv6', includeValue: true })
163Serverless: [AWS apigateway 200 0.264s 0 retries] getApiKey({ apiKey: 'gcqgc66tdg', includeValue: true })
164Serverless: [AWS apigateway 200 0.215s 0 retries] getApiKey({ apiKey: '5j777s3el2', includeValue: true })
165Serverless: [AWS apigateway 200 0.226s 0 retries] getApiKey({ apiKey: '1iro0lh6kg', includeValue: true })
166Serverless: [AWS apigateway 200 0.169s 0 retries] getApiKey({ apiKey: '5bzy6r97k6', includeValue: true })
167Serverless: [AWS apigateway 200 0.179s 0 retries] getApiKey({ apiKey: 'iuezsv3x4k', includeValue: true })
168Serverless: [AWS apigateway 200 0.167s 0 retries] getApiKey({ apiKey: 'uy8sxvbl88', includeValue: true })
169Service Information
170service: 4yuetgoiwt35y
171stage: prd
172region: eu-west-1
173stack: 4yuetgoiwt35y-prd
174resources: 31
175api keys:
176 4yuetgoiwt35y:prd-tomek: fJmh8F5osW491yZxKcsCJ7Gtajz7mtaI25AHvvt2
177 4yuetgoiwt35y:prd-marek: s7AFp3EtEAFigOjCpk9p7cxk8uKkZLt7Zm3hhJ9j
178 4yuetgoiwt35y:prd-syngeos-awair: M1XdILiUfpaVytKXipbhu71DtN9ankwN2fLdAU6K
179 4yuetgoiwt35y:prd-beskid-notused: AQyUXDygCd3UEkmak99e3aBC01mGwgGs1wry2i1Z
180 4yuetgoiwt35y:prd-beskid-salt: yZpIlDELZE7C9yV7IHZ546HgJOrK0B9H2Y7ojkcd
181 4yuetgoiwt35y:prd-syngeos-katowice-cz: F1iWd7d8no6Kl3qqaImWm3qfeIuhuJdsayXZ8f5Q
182 4yuetgoiwt35y:prd-beskid-main: V3I4mnz9OX8e7r9tXaMRV5qypg1oY3Si4Z7hItu1
183endpoints:
184 POST - https://4yuetgoiwt35y.execute-api.eu-west-1.amazonaws.com/prd/
185functions:
186 HelloWorld: 4yuetgoiwt35y-prd-HelloWorld
187layers:
188 None
189Serverless: [AWS sts 200 0.599s 0 retries] getCallerIdentity({})
190Serverless: [AWS apigateway 200 0.177s 0 retries] getRestApis({ position: undefined, limit: 500 })
191Serverless: [AWS apigateway 200 0.173s 0 retries] getStage({ restApiId: '4yuetgoiwt35y', stageName: 'prd' })
192Serverless: [AWS apigateway 200 0.353s 0 retries] updateStage({ restApiId: '4yuetgoiwt35y',
193 stageName: 'prd',
194 patchOperations:
195 [ { op: 'replace',
196 path: '/accessLogSettings/destinationArn',
197 value: 'arn:aws:logs:eu-west-1:114761073379:log-group:/aws/api-gateway/4yuetgoiwt35y-prd' },
198 { op: 'replace',
199 path: '/accessLogSettings/format',
200 value: '{"requestTime":"$context.requestTime","requestId":"$context.requestId","apiId":"$context.apiId","resourceId":"$context.resourceId","resourcePath":"$context.resourcePath","path":"$context.path","httpMethod":"$context.httpMethod","status":"$context.status","authLatency":"$context.authorizer.integrationLatency","integrationLatency":"$context.integrationLatency","integrationStatus":"$context.integrationStatus","responseLatency":"$context.responseLatency","responseLength":"$context.responseLength","errorMessage":"$context.error.message","format":"SLS_ACCESS_LOG","version":"1.0.0"}' },
201 { op: 'replace', path: '/*/*/logging/dataTrace', value: 'true' },
202 { op: 'replace', path: '/*/*/logging/loglevel', value: 'INFO' },
203 [length]: 4 ] })
204Serverless: [AWS cloudformation 200 0.218s 0 retries] describeStackResource({ LogicalResourceId: 'ApiGatewayRestApi',
205 StackName: '4yuetgoiwt35y-prd' })
206Serverless: [AWS apigateway 200 0.165s 0 retries] getBasePathMappings({ domainName: 'api.rhteg365y3eg.cloud' })
207Serverless: [AWS apigateway 200 1.859s 0 retries] updateBasePathMapping({ basePath: 'v1',
208 domainName: 'api.rhteg365y3eg.cloud',
209 patchOperations:
210 [ { op: 'replace', path: '/basePath', value: 'v1' },
211 [length]: 1 ] })
212Serverless: Updated basepath mapping.
213Serverless: [AWS apigateway 200 0.168s 0 retries] getDomainName({ domainName: 'api.rhteg365y3eg.cloud' })
214Serverless Domain Manager Summary
215Domain Name
216 api.rhteg365y3eg.cloud
217Distribution Domain Name
218 Target Domain: d-csln5nvmp8.execute-api.eu-west-1.amazonaws.com
219 Hosted Zone Id: ZLY8HYME6SFDD
220Serverless: Invoke aws:deploy:finalize
221Serverless: [AWS s3 200 0.269s 0 retries] listObjectsV2({ Bucket: 'wrgserws-bibucket-lambda-functions',
222 Prefix: 'serverless/4yuetgoiwt35y/prd' })
223Serverless: Removing old service artifacts from S3...
224Serverless: [AWS s3 200 0.234s 0 retries] deleteObjects({ Bucket: 'wrgserws-bibucket-lambda-functions',
225 Delete:
226 { Objects:
227 [ { Key: 'serverless/4yuetgoiwt35y/prd/1577173015643-2019-12-24T07:36:55.643Z/HelloWorld.zip' },
228 { Key: 'serverless/4yuetgoiwt35y/prd/1577173015643-2019-12-24T07:36:55.643Z/compiled-cloudformation-template.json' },
229 { Key: 'serverless/4yuetgoiwt35y/prd/1577173015643-2019-12-24T07:36:55.643Z/custom-resources.zip' },
230 [length]: 3 ] } })
231Serverless: Publishing service to the Serverless Dashboard...
232Serverless: [AWS sts 200 0.461s 0 retries] getCallerIdentity({})
233Serverless: [AWS cloudformation 200 0.219s 0 retries] describeStacks({ StackName: '4yuetgoiwt35y-prd' })
234platform-sdk fetching: POST https://api.serverless.com/core/tenants/wrgserws/applications/rhteg365y3eg/services/4yuetgoiwt35y/stages/prd/regions/eu-west-1/deployments
235Serverless: Successfully published your service to the Serverless Dashboard: https://dashboard.serverless.com/tenants/wrgserws/applications/rhteg365y3eg/services/4yuetgoiwt35y/stage/prd/region/eu-west-1