This repository servers as a small example of the Long Runing Lambda talk I gave at AWS Community Day Midwest.
- Install AWS CLI -
pip install awscli
- Clone this repository -
git clone https://github.com/jjshoe/LongRunningLambda.git
- Change into the repository -
cd LongRunningLambda
- Run the cloudformation, feel free to change the Name parameter, VpcCidr parameter, and stackname to whatever suits you -
aws cloudformation deploy --template cloudformation.yml --stack-name LongRunningLambda --capabilities CAPABILITY_IAM --parameter-overrides VpcCidr=10.121.0.0/16 Name=LongRunningLambda
- Sign into your AWS web console
- From the
Services
drop down, search for and selectLambda
- Click on the function name, it will match what you passed in for a name parameter in step 3
- On the upper right side will be a drop down with grey text that says
Select a test event..
, click on it - Select
Configure test events
in the drop down - In the
Event name
input, typetest
- Click the orange button on bottom labeled
Create
- Sign into your AWS web console
- From the
Services
drop down, search for and selectCloudWatch
- On the far left select
Logs
- Click
/aws/lambda/EcsTaskLauncher
- Click on any log entry that interests you