Skip to content

Instantly share code, notes, and snippets.

@ddewaele
Last active September 11, 2017 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddewaele/d457f635b908c69e6c968f3ceac371aa to your computer and use it in GitHub Desktop.
Save ddewaele/d457f635b908c69e6c968f3ceac371aa to your computer and use it in GitHub Desktop.
ecs-docker-hub
Metadata:
  AWS::CloudFormation::Init:
  config:
  commands:
  01_add_instance_to_cluster:
  command: !Sub |
  echo ECS_CLUSTER=${ECSCluster} >> /etc/ecs/ecs.config
  echo ECS_ENGINE_AUTH_TYPE=dockercfg >> /etc/ecs/ecs.config
  echo ECS_ENGINE_AUTH_DATA="{\"https://index.docker.io/v1/\": {\"auth\": \"xxxxxxxxxxxx=\"}}" >> /etc/ecs/ecs.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment