Skip to content

Instantly share code, notes, and snippets.

View xyjrshank's full-sized avatar

JRShank xyjrshank

  • Xyleme, Inc.
  • Denver, CO, USA
  • 05:12 (UTC -06:00)
View GitHub Profile
@xyjrshank
xyjrshank / cfn_service_discovery_service.py
Last active May 9, 2018 23:24
Lambda function to be used as a CFN custom resource in lieu of AWS::ECS::Service until it supports HealthCheckCustomConfig.
import logging
import boto3
from botocore.exceptions import ClientError
from cfn_lambda_handler import Handler
logging.basicConfig(level=logging.WARNING)
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger('boto3').setLevel(logging.WARNING)
logging.getLogger('botocore').setLevel(logging.WARNING)