You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/functional/testdata/init/unknown_runtime/python3.9/cookiecutter-aws-sam-hello/{{cookiecutter.project_name}}/__init__.py
Copy file name to clipboardExpand all lines: tests/functional/testdata/init/unknown_runtime/python3.9/cookiecutter-aws-sam-hello/{{cookiecutter.project_name}}/hello_world/__init__.py
Sample SAM Template for {{ cookiecutter.project_name }}
7
+
8
+
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
9
+
Globals:
10
+
Function:
11
+
Timeout: 3
12
+
13
+
Resources:
14
+
HelloWorldFunction:
15
+
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
16
+
Properties:
17
+
CodeUri: hello_world/
18
+
Handler: app.lambda_handler
19
+
Runtime: python3.9
20
+
{%- if cookiecutter.architectures.value != []%}
21
+
Architectures:
22
+
{%- for arch in cookiecutter.architectures.value %}
23
+
- {{arch}}
24
+
{%- endfor %}
25
+
{%- endif %}
26
+
Events:
27
+
HelloWorld:
28
+
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
29
+
Properties:
30
+
Path: /hello
31
+
Method: get
32
+
33
+
Outputs:
34
+
# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
35
+
# Find out more about other implicit resources you can reference within SAM
0 commit comments