Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# docker + docker-compose
echo "starting docker installation" > /home/ubuntu/start.log
{ # try
sudo apt-get update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
@mjsc1409
mjsc1409 / Restart-unhealthy-target-group.md
Last active September 16, 2021 22:30
get-target-health-AWS-Lambda
import sys
import urllib.request, urllib.error, urllib.parse
import boto3
region = 'us-east-1'

def lambda_handler(event, context):
    print('## Iniciando health check demo')
    client = boto3.client('elbv2')
 targetResponse = client.describe_target_health(