aws:codebuild
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
aws:codebuild [23/06/2025 10:33] – created andrew | aws:codebuild [02/09/2025 10:04] (current) – [BASH shell script] andrew | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Python in Lambda ===== | ===== Python in Lambda ===== | ||
+ | |||
+ | buildspec.yaml | ||
+ | <code python> | ||
+ | version: 0.2 | ||
+ | |||
+ | phases: | ||
+ | install: | ||
+ | commands: | ||
+ | - echo " | ||
+ | - pip install boto3 | ||
+ | |||
+ | build: | ||
+ | commands: | ||
+ | - echo " | ||
+ | - python3 -c 'from reports import lambda_handler; | ||
+ | - echo " | ||
+ | </ | ||
+ | |||
+ | Note the use of '' | ||
+ | |||
Line 7: | Line 27: | ||
+ | buildspec.yaml | ||
+ | <code bash> | ||
+ | version: 0.2 | ||
+ | |||
+ | phases: | ||
+ | build: | ||
+ | commands: | ||
+ | - export timestamp=$(date +%s%3N) | ||
+ | - echo " | ||
+ | - aws logs put-log-events --log-group-name logging_test --log-stream-name 20150601 --log-events timestamp=" | ||
+ | </ | ||
aws/codebuild.1750674803.txt.gz · Last modified: by andrew