-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description:
I have a python project. The requirements.txt is just one line, ., which should tell sam to use the local setup.py for installing.
The project is structured with code/ acting as a sub-project with python code, itself structured with packages inside the src/ directory, the result being that all the python code is under code/src/<mypackage>/**/*.py; it's not entirely conventional but it was working just fine.
Since 1.24.0, the build command does not include my own code in the build.
Steps to reproduce:
Reproduce with a project that looks like this:
# template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An
Globals:
Function:
Runtime: python3.8
CodeUri: code
Description: >-
An Lambda Function that sends terminal-state order transitions to DATOS
for eventual streaming to SDP.
MemorySize: 2048
Timeout: 900
Resources:
LambdaFunction:
Type: 'AWS::Serverless::Function'
Properties:
Handler: mycode.entrypoint.handler
FunctionName: "my-function"
Role:
Fn::ImportValue: "a role"
Events:
Stream:
Type: DynamoDB
Properties:
Stream:
Fn::ImportValue: "a-stream"
BatchSize: 500
ParallelizationFactor: 10
StartingPosition: TRIM_HORIZON# requirements.txt
.
# code/setup.py
from setuptools import setup
setup()# setup.cfg
[metadata]
name = mycode
description = Filter DynamoDB stream records and send them to datos-gateway
version = 0.0.0
[options]
zip_safe = False
packages = find:
package_dir =
=src
install_requires =
requests==2.23.0
include_package_data = True
[options.packages.find]
where = src# code/src/mycode/__init__.py# code/src/mycode/entrypoint.py
def handler(event, ctx):
passObserved result:
(I'm saving debug output for the end for legibility.)
$ sam build --build-dir local-1.24.1/aws-sam --use-container --build-image public.ecr.aws/sam/build-python3.8:1.24.1
Starting Build inside a container
Building codeuri: /Users/jpassaro/code/aws-sam-bug-repro/code runtime: python3.8 metadata: {} functions: ['LambdaFunction']
Fetching public.ecr.aws/sam/build-python3.8:1.24.1 Docker container image......
Mounting /Users/jpassaro/code/aws-sam-bug-repro/code as /tmp/samcli/source:ro,delegated inside runtime container
Build Succeeded
Built Artifacts : local-1.24.1/aws-sam
Built Template : local-1.24.1/aws-sam/template.yaml
Commands you can use next
=========================
[*] Invoke Function: sam local invoke -t local-1.24.1/aws-sam/template.yaml
[*] Deploy: sam deploy --guided --template-file local-1.24.1/aws-sam/template.yaml
Running PythonPipBuilder:ResolveDependencies
Running PythonPipBuilder:CopySource
$ ls local-1.24.1/aws-sam/LambdaFunction
certifi
certifi-2021.5.30.dist-info
chardet
chardet-3.0.4.dist-info
idna
idna-2.10.dist-info
requests
requests-2.23.0.dist-info
requirements.txt
setup.cfg
setup.py
src
urllib3
urllib3-1.25.11.dist-infoi.e. mycode, the package from my code/src directory, is missing.
Expected result:
The mycode package is included with 1.23.0 (again --debug output is included at the end):
$ sam build --build-dir local-1.23.0/aws-sam --use-container --build-image public.ecr.aws/sam/build-python3.8:1.23.0
Starting Build inside a container
Building codeuri: /Users/jpassaro/code/aws-sam-bug-repro/code runtime: python3.8 metadata: {} functions: ['LambdaFunction']
Fetching public.ecr.aws/sam/build-python3.8:1.23.0 Docker container image......
Mounting /Users/jpassaro/code/aws-sam-bug-repro/code as /tmp/samcli/source:ro,delegated inside runtime container
Build Succeeded
Built Artifacts : local-1.23.0/aws-sam
Built Template : local-1.23.0/aws-sam/template.yaml
Commands you can use next
=========================
[*] Invoke Function: sam local invoke -t local-1.23.0/aws-sam/template.yaml
[*] Deploy: sam deploy --guided --template-file local-1.23.0/aws-sam/template.yaml
Running PythonPipBuilder:ResolveDependencies
Running PythonPipBuilder:CopySource
$ ls local-1.23.0/aws-sam/LambdaFunction/
certifi
certifi-2021.5.30.dist-info
chardet
chardet-3.0.4.dist-info
idna
idna-2.10.dist-info
mycode
mycode-0.0.0.dist-info
requests
requests-2.23.0.dist-info
requirements.txt
setup.cfg
setup.py
src
urllib3
urllib3-1.25.11.dist-infoIt is also included with a regular pip install:
$ mkdir /tmp/pip-target
$ cd code
$ python3.8 -m pip install --target=/tmp/pip-target -r requirements.txt
Processing /Users/jpassaro/code/aws-sam-bug-repro/code
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Collecting requests==2.23.0
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
Building wheels for collected packages: mycode
Building wheel for mycode (setup.py) ... done
Created wheel for mycode: filename=mycode-0.0.0-py3-none-any.whl size=1417 sha256=2858093d8871987e9ba58bfce74fd70f2bff0b688ba427de478fa5195340f560
Stored in directory: /private/var/folders/g8/hbxfr3v905x86qhvchgj3dkm0000gr/T/pip-ephem-wheel-cache-kn117kdh/wheels/b2/4d/5e/8a6cb782f1377c0d9045c1dcacaca47d5d117f21c47e3abcac
Successfully built mycode
Installing collected packages: urllib3, idna, chardet, certifi, requests, mycode
Successfully installed certifi-2021.5.30 chardet-3.0.4 idna-2.10 mycode-0.0.0 requests-2.23.0 urllib3-1.25.11
$ ls /tmp/pip-target
bin
certifi
certifi-2021.5.30.dist-info
chardet
chardet-3.0.4.dist-info
idna
idna-2.10.dist-info
mycode
mycode-0.0.0.dist-info
requests
requests-2.23.0.dist-info
urllib3
urllib3-1.25.11.dist-infoAdditional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Mac/docker
sam --version: docker image 1.24.1- AWS region: not applicable -- no AWS interactions
Add --debug flag to command you are running
$ sam build --debug --build-dir local-1.24.1/aws-sam --use-container --build-image public.ecr.aws/sam/build-python3.8:1.24.1
2021-06-17 16:43:54,759 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2021-06-17 16:43:54,760 | Using config file: samconfig.toml, config environment: default
2021-06-17 16:43:54,760 | Expand command line arguments to:
2021-06-17 16:43:54,760 | --template_file=/Users/jpassaro/code/aws-sam-bug-repro/template.yaml --build_dir=local-1.24.1/aws-sam --use_container --build_image=('public.ecr.aws/sam/build-python3.8:1.24.1',) --cache_dir=.aws-sam/cache
2021-06-17 16:43:54,846 | 'build' command is called
2021-06-17 16:43:54,846 | Starting Build inside a container
2021-06-17 16:43:54,850 | No Parameters detected in the template
2021-06-17 16:43:54,872 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:43:54,872 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:43:54,872 | 1 stacks found in the template
2021-06-17 16:43:54,872 | No Parameters detected in the template
2021-06-17 16:43:54,900 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:43:54,901 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:43:54,901 | 1 resources found in the stack
2021-06-17 16:43:54,901 | No Parameters detected in the template
2021-06-17 16:43:54,922 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:43:54,922 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:43:54,922 | Found Serverless function with name='LambdaFunction' and CodeUri='code'
2021-06-17 16:43:54,922 | --base-dir is not presented, adjusting uri code relative to /Users/jpassaro/code/aws-sam-bug-repro/template.yaml
2021-06-17 16:43:54,922 | No Parameters detected in the template
2021-06-17 16:43:54,940 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:43:54,940 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:43:54,942 | Instantiating build definitions
2021-06-17 16:43:54,942 | No previous build graph found, generating new one
2021-06-17 16:43:54,943 | Unique function build definition found, adding as new (Function Build Definition: BuildDefinition(python3.8, /Users/jpassaro/code/aws-sam-bug-repro/code, Zip, , 73b4dead-fc3e-4f17-a57c-2d75abeebad7, {}, {}, []), Function: Function(name='LambdaFunction', functionname='my-function', runtime='python3.8', memory=2048, timeout=900, handler='mycode.entrypoint.handler', imageuri=None, packagetype='Zip', imageconfig=None, codeuri='/Users/jpassaro/code/aws-sam-bug-repro/code', environment=None, rolearn=OrderedDict([('Fn::ImportValue', 'a role')]), layers=[], events={'Stream': {'Type': 'DynamoDB', 'Properties': {'Stream': OrderedDict([('Fn::ImportValue', 'a-stream')]), 'BatchSize': 500, 'ParallelizationFactor': 10, 'StartingPosition': 'TRIM_HORIZON'}}}, metadata=None, inlinecode=None, codesign_config_arn=None, stack_path=''))
2021-06-17 16:43:54,943 | Building codeuri: /Users/jpassaro/code/aws-sam-bug-repro/code runtime: python3.8 metadata: {} functions: ['LambdaFunction']
2021-06-17 16:43:54,943 | Building to following folder /Users/jpassaro/code/aws-sam-bug-repro/local-1.24.1/aws-sam/LambdaFunction
Fetching public.ecr.aws/sam/build-python3.8:1.24.1 Docker container image......
2021-06-17 16:43:55,540 | Mounting /Users/jpassaro/code/aws-sam-bug-repro/code as /tmp/samcli/source:ro,delegated inside runtime container
Using the request object from command line argument
Loading workflow module 'aws_lambda_builders.workflows'
Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
Registering workflow 'GoDepBuilder' with capability 'Capability(language='go', dependency_manager='dep', application_framework=None)'
Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Found workflow 'PythonPipBuilder' to support capabilities 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Running workflow 'PythonPipBuilder'
Running PythonPipBuilder:ResolveDependencies
calling pip download -r /tmp/samcli/source/requirements.txt --dest /tmp/samcli/scratch --exists-action i
Full dependency closure: {certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), urllib3==1.25.11(wheel)}
initial compatible: {certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), urllib3==1.25.11(wheel)}
initial incompatible: set()
Downloading missing wheels: set()
compatible wheels after second download pass: {certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), urllib3==1.25.11(wheel)}
Build missing wheels from sdists (C compiling True): set()
compatible after building wheels (no C compiling): {certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), urllib3==1.25.11(wheel)}
Build missing wheels from sdists (C compiling False): set()
compatible after building wheels (C compiling): {certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), urllib3==1.25.11(wheel)}
Final compatible: {requests==2.23.0(wheel), urllib3==1.25.11(wheel), certifi==2021.5.30(wheel), idna==2.10(wheel), chardet==3.0.4(wheel)}
Final incompatible: set()
Final missing wheels: set()
PythonPipBuilder:ResolveDependencies succeeded
Running PythonPipBuilder:CopySource
PythonPipBuilder:CopySource succeeded
2021-06-17 16:43:58,941 | Build inside container returned response {"jsonrpc": "2.0", "id": 1, "result": {"artifacts_dir": "/tmp/samcli/artifacts"}}
2021-06-17 16:43:58,941 | Build inside container was successful. Copying artifacts from container to host
2021-06-17 16:44:00,058 | Copying from container: /tmp/samcli/artifacts/. -> /Users/jpassaro/code/aws-sam-bug-repro/local-1.24.1/aws-sam/LambdaFunction
2021-06-17 16:44:00,304 | Build inside container succeeded
Build Succeeded
Built Artifacts : local-1.24.1/aws-sam
Built Template : local-1.24.1/aws-sam/template.yaml
Commands you can use next
=========================
[*] Invoke Function: sam local invoke -t local-1.24.1/aws-sam/template.yaml
[*] Deploy: sam deploy --guided --template-file local-1.24.1/aws-sam/template.yaml
2021-06-17 16:44:00,311 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': 'de59c0a5-9846-415b-b6a4-c543d51f393e', 'installationId': '490eb119-82eb-4f07-a55a-ce28a4c0f3c5', 'sessionId': '4c073d96-31ff-4d19-a7c5-6a06d10f42e0', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.10', 'samcliVersion': '1.23.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'duration': 5551, 'exitReason': 'success', 'exitCode': 0}}]}
2021-06-17 16:44:00,728 | Telemetry response: 200$ sam build --build-dir local-1.23.0/aws-sam --use-container --build-image public.ecr.aws/sam/build-python3.8:1.23.0 --debug
2021-06-17 16:58:42,374 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2021-06-17 16:58:42,375 | Using config file: samconfig.toml, config environment: default
2021-06-17 16:58:42,375 | Expand command line arguments to:
2021-06-17 16:58:42,375 | --template_file=/Users/jpassaro/code/aws-sam-bug-repro/template.yaml --build_dir=local-1.23.0/aws-sam --use_container --build_image=('public.ecr.aws/sam/build-python3.8:1.23.0',) --cache_dir=.aws-sam/cache
2021-06-17 16:58:42,446 | 'build' command is called
2021-06-17 16:58:42,446 | Starting Build inside a container
2021-06-17 16:58:42,449 | No Parameters detected in the template
2021-06-17 16:58:42,473 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:58:42,474 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:58:42,474 | 1 stacks found in the template
2021-06-17 16:58:42,474 | No Parameters detected in the template
2021-06-17 16:58:42,501 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:58:42,502 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:58:42,502 | 1 resources found in the stack
2021-06-17 16:58:42,502 | No Parameters detected in the template
2021-06-17 16:58:42,523 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:58:42,523 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:58:42,523 | Found Serverless function with name='LambdaFunction' and CodeUri='code'
2021-06-17 16:58:42,523 | --base-dir is not presented, adjusting uri code relative to /Users/jpassaro/code/aws-sam-bug-repro/template.yaml
2021-06-17 16:58:42,523 | No Parameters detected in the template
2021-06-17 16:58:42,541 | Unable to resolve property Role: OrderedDict([('Fn::ImportValue', 'a role')]). Leaving as is.
2021-06-17 16:58:42,541 | Unable to resolve property Stream: OrderedDict([('Fn::ImportValue', 'a-stream')]). Leaving as is.
2021-06-17 16:58:42,544 | Instantiating build definitions
2021-06-17 16:58:42,544 | No previous build graph found, generating new one
2021-06-17 16:58:42,544 | Unique function build definition found, adding as new (Function Build Definition: BuildDefinition(python3.8, /Users/jpassaro/code/aws-sam-bug-repro/code, Zip, , b0cbb173-4de4-4c7a-9d6f-9816b37349de, {}, {}, []), Function: Function(name='LambdaFunction', functionname='my-function', runtime='python3.8', memory=2048, timeout=900, handler='mycode.entrypoint.handler', imageuri=None, packagetype='Zip', imageconfig=None, codeuri='/Users/jpassaro/code/aws-sam-bug-repro/code', environment=None, rolearn=OrderedDict([('Fn::ImportValue', 'a role')]), layers=[], events={'Stream': {'Type': 'DynamoDB', 'Properties': {'Stream': OrderedDict([('Fn::ImportValue', 'a-stream')]), 'BatchSize': 500, 'ParallelizationFactor': 10, 'StartingPosition': 'TRIM_HORIZON'}}}, metadata=None, inlinecode=None, codesign_config_arn=None, stack_path=''))
2021-06-17 16:58:42,545 | Building codeuri: /Users/jpassaro/code/aws-sam-bug-repro/code runtime: python3.8 metadata: {} functions: ['LambdaFunction']
2021-06-17 16:58:42,545 | Building to following folder /Users/jpassaro/code/aws-sam-bug-repro/local-1.23.0/aws-sam/LambdaFunction
Fetching public.ecr.aws/sam/build-python3.8:1.23.0 Docker container image......
2021-06-17 16:58:42,998 | Mounting /Users/jpassaro/code/aws-sam-bug-repro/code as /tmp/samcli/source:ro,delegated inside runtime container
Using the request object from command line argument
Loading workflow module 'aws_lambda_builders.workflows'
Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
Registering workflow 'GoDepBuilder' with capability 'Capability(language='go', dependency_manager='dep', application_framework=None)'
Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
Found workflow 'PythonPipBuilder' to support capabilities 'Capability(language='python', dependency_manager='pip', application_framework=None)'
Running workflow 'PythonPipBuilder'
Running PythonPipBuilder:ResolveDependencies
calling pip download -r /tmp/samcli/source/requirements.txt --dest /tmp/samcli/scratch
calling pip wheel --no-deps --wheel-dir /tmp/samcli/scratch /tmp/samcli/source
Full dependency closure: {urllib3==1.25.11(wheel), certifi==2021.5.30(wheel), mycode==0.0.0(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), idna==2.10(wheel)}
initial compatible: {urllib3==1.25.11(wheel), mycode==0.0.0(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), idna==2.10(wheel), certifi==2021.5.30(wheel)}
initial incompatible: set()
Downloading missing wheels: set()
compatible wheels after second download pass: {urllib3==1.25.11(wheel), certifi==2021.5.30(wheel), mycode==0.0.0(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), idna==2.10(wheel)}
Build missing wheels from sdists (C compiling True): set()
compatible after building wheels (no C compiling): {urllib3==1.25.11(wheel), certifi==2021.5.30(wheel), mycode==0.0.0(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), idna==2.10(wheel)}
Build missing wheels from sdists (C compiling False): set()
compatible after building wheels (C compiling): {urllib3==1.25.11(wheel), certifi==2021.5.30(wheel), mycode==0.0.0(wheel), chardet==3.0.4(wheel), requests==2.23.0(wheel), idna==2.10(wheel)}
Final compatible: {mycode==0.0.0(wheel), requests==2.23.0(wheel), chardet==3.0.4(wheel), urllib3==1.25.11(wheel), idna==2.10(wheel), certifi==2021.5.30(wheel)}
Final incompatible: set()
Final missing wheels: set()
PythonPipBuilder:ResolveDependencies succeeded
Running PythonPipBuilder:CopySource
PythonPipBuilder:CopySource succeeded
2021-06-17 16:58:46,199 | Build inside container returned response {"jsonrpc": "2.0", "id": 1, "result": {"artifacts_dir": "/tmp/samcli/artifacts"}}
2021-06-17 16:58:46,199 | Build inside container was successful. Copying artifacts from container to host
2021-06-17 16:58:47,295 | Copying from container: /tmp/samcli/artifacts/. -> /Users/jpassaro/code/aws-sam-bug-repro/local-1.23.0/aws-sam/LambdaFunction
2021-06-17 16:58:47,498 | Build inside container succeeded
Build Succeeded
Built Artifacts : local-1.23.0/aws-sam
Built Template : local-1.23.0/aws-sam/template.yaml
Commands you can use next
=========================
[*] Invoke Function: sam local invoke -t local-1.23.0/aws-sam/template.yaml
[*] Deploy: sam deploy --guided --template-file local-1.23.0/aws-sam/template.yaml
2021-06-17 16:58:47,507 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '7acf70f8-43ce-4956-855a-413bcfe2e5a8', 'installationId': '490eb119-82eb-4f07-a55a-ce28a4c0f3c5', 'sessionId': 'dc512ff2-7880-4358-94db-8fc05efba2de', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.8.10', 'samcliVersion': '1.23.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'duration': 5131, 'exitReason': 'success', 'exitCode': 0}}]}
2021-06-17 16:58:47,868 | Telemetry response: 200