Skip to content

Commit 4858b28

Browse files
author
Michal Ploski
committed
Fixing templates indentation
1 parent 0e7b2eb commit 4858b28

File tree

1 file changed

+58
-62
lines changed

1 file changed

+58
-62
lines changed

docs/quickstart.md

Lines changed: 58 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ Let's configure our base application to look like the following code snippet.
5858
- x86_64
5959
Events:
6060
HelloWorld:
61-
Type: Api
62-
Properties:
63-
Path: /hello
64-
Method: get
61+
Type: Api
62+
Properties:
63+
Path: /hello
64+
Method: get
6565
Outputs:
6666
HelloWorldApi:
6767
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
@@ -142,36 +142,35 @@ One approach is to create another lambda with required method and set up the API
142142
```yaml hl_lines="21-32"
143143
AWSTemplateFormatVersion: "2010-09-09"
144144
Transform: AWS::Serverless-2016-10-31
145-
Description: >
146-
Sample SAM Template for powertools-quickstart
145+
Description: Sample SAM Template for powertools-quickstart
147146
Globals:
148147
Function:
149148
Timeout: 3
150149
Resources:
151150
HelloWorldFunction:
152151
Type: AWS::Serverless::Function
153152
Properties:
154-
CodeUri: hello_world/
155-
Handler: app.lambda_handler
156-
Runtime: python3.9
157-
Events:
158-
HelloWorld:
159-
Type: Api
160-
Properties:
161-
Path: /hello
162-
Method: get
153+
CodeUri: hello_world/
154+
Handler: app.lambda_handler
155+
Runtime: python3.9
156+
Events:
157+
HelloWorld:
158+
Type: Api
159+
Properties:
160+
Path: /hello
161+
Method: get
163162
HelloWorldFunctionName:
164163
Type: AWS::Serverless::Function
165164
Properties:
166-
CodeUri: hello_world/
167-
Handler: app_name.lambda_handler
168-
Runtime: python3.9
169-
Events:
170-
HelloWorldName:
171-
Type: Api
172-
Properties:
173-
Path: /hello/{name}
174-
Method: get
165+
CodeUri: hello_world/
166+
Handler: app_name.lambda_handler
167+
Runtime: python3.9
168+
Events:
169+
HelloWorldName:
170+
Type: Api
171+
Properties:
172+
Path: /hello/{name}
173+
Method: get
175174
Outputs:
176175
HelloWorldApi:
177176
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
@@ -233,11 +232,10 @@ The simple code might look similar to the following code snippet.
233232
```yaml hl_lines="15-25"
234233
AWSTemplateFormatVersion: "2010-09-09"
235234
Transform: AWS::Serverless-2016-10-31
236-
Description: >
237-
Sample SAM Template for powertools-quickstart
235+
Description: Sample SAM Template for powertools-quickstart
238236
Globals:
239237
Function:
240-
Timeout: 3
238+
Timeout: 3
241239
Resources:
242240
HelloWorldFunction:
243241
Type: AWS::Serverless::Function
@@ -249,13 +247,13 @@ The simple code might look similar to the following code snippet.
249247
HelloWorld:
250248
Type: Api
251249
Properties:
252-
Path: /hello
253-
Method: get
250+
Path: /hello
251+
Method: get
254252
HelloWorldName:
255253
Type: Api
256254
Properties:
257-
Path: /hello/{name}
258-
Method: get
255+
Path: /hello/{name}
256+
Method: get
259257
Outputs:
260258
HelloWorldApi:
261259
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
@@ -480,11 +478,10 @@ Let's first explore how we can achieve this with [x-ray SDK](https://docs.aws.am
480478
```yaml hl_lines="15"
481479
AWSTemplateFormatVersion: "2010-09-09"
482480
Transform: AWS::Serverless-2016-10-31
483-
Description: >
484-
Sample SAM Template for powertools-quickstart
481+
Description: Sample SAM Template for powertools-quickstart
485482
Globals:
486-
Function:
487-
Timeout: 3
483+
Function:
484+
Timeout: 3
488485
Resources:
489486
HelloWorldFunction:
490487
Type: AWS::Serverless::Function
@@ -495,15 +492,15 @@ Let's first explore how we can achieve this with [x-ray SDK](https://docs.aws.am
495492
Tracing: Active
496493
Events:
497494
HelloWorld:
498-
Type: Api
499-
Properties:
500-
Path: /hello
501-
Method: get
495+
Type: Api
496+
Properties:
497+
Path: /hello
498+
Method: get
502499
HelloWorldName:
503-
Type: Api
504-
Properties:
505-
Path: /hello/{name}
506-
Method: get
500+
Type: Api
501+
Properties:
502+
Path: /hello/{name}
503+
Method: get
507504
Outputs:
508505
HelloWorldApi:
509506
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
@@ -643,32 +640,31 @@ Let's expand our application with custom metrics without Powertools to see how i
643640
```yaml hl_lines="27 28"
644641
AWSTemplateFormatVersion: "2010-09-09"
645642
Transform: AWS::Serverless-2016-10-31
646-
Description: >
647-
Sample SAM Template for powertools-quickstart
643+
Description: Sample SAM Template for powertools-quickstart
648644
Globals:
649645
Function:
650646
Timeout: 3
651647
Resources:
652648
HelloWorldFunction:
653649
Type: AWS::Serverless::Function
654650
Properties:
655-
CodeUri: hello_world/
656-
Handler: app.lambda_handler
657-
Runtime: python3.9
658-
Tracing: Active
659-
Events:
660-
HelloWorld:
661-
Type: Api
662-
Properties:
663-
Path: /hello
664-
Method: get
665-
HelloWorldName:
666-
Type: Api
667-
Properties:
668-
Path: /hello/{name}
669-
Method: get
670-
Policies:
671-
- CloudWatchPutMetricPolicy: {}
651+
CodeUri: hello_world/
652+
Handler: app.lambda_handler
653+
Runtime: python3.9
654+
Tracing: Active
655+
Events:
656+
HelloWorld:
657+
Type: Api
658+
Properties:
659+
Path: /hello
660+
Method: get
661+
HelloWorldName:
662+
Type: Api
663+
Properties:
664+
Path: /hello/{name}
665+
Method: get
666+
Policies:
667+
- CloudWatchPutMetricPolicy: {}
672668
Outputs:
673669
HelloWorldApi:
674670
Description: "API Gateway endpoint URL for Prod stage for Hello World function"

0 commit comments

Comments
 (0)