Skip to content

Instantly share code, notes, and snippets.

View congdang-agilityio's full-sized avatar

Cong Dang congdang-agilityio

View GitHub Profile
@congdang-agilityio
congdang-agilityio / lamda-provisioned-concurrency.yaml
Created December 11, 2019 04:07
CloudFormation template for setting up Lambda Provisioned Concurrency and AutoScaling by using Utilization metric
MyFunction:
Type: AWS::Lambda::Function
Properties:
FunctionName: hello
Code:
S3Bucket: lambda-repos
S3Key: hello.zip
Handler: lambda.handler
Environment:
Variables:
@congdang-agilityio
congdang-agilityio / README.md
Last active March 8, 2018 08:22 — forked from DocX/README.md
Connect to bash inside running ECS container by cluster and service name
@congdang-agilityio
congdang-agilityio / kill-rmq-connections.sh
Created August 17, 2017 10:12 — forked from thiagooak/kill-rmq-connections.sh
kill ALL rabbitmq connections
rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" | "/bin/bash" }'