Coder Social home page Coder Social logo

devops-tf-ecs's Introduction

Provisioning user recommended to have:

arn:aws:iam::aws:policy/AmazonECS_FullAccess

Example ecs config for private images

#!/bin/bash
cat > /etc/ecs/ecs.config << EOF
ECS_CLUSTER=test-cluster
ECS_ENGINE_AUTH_TYPE=dockercfg
ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/":{"auth":"SOME TOKEN","email":"SOME DOCKER HUB EMAIL"}}
EOF

most simple case

#!/bin/bash
echo ECS_CLUSTER=${ecs_cluster_name} >> /etc/ecs/ecs.config

Using aws cli

Get information about clusters running

aws ecs describe-clusters
CLUSTERS        0       arn:aws:ecs:us-east-1:XXX:cluster/default      default 0       0       0       ACTIVE

or

aws ecs list-clusters
CLUSTERARNS     arn:aws:ecs:us-east-1:XXX:cluster/ecs-default

Get information about instances serving the cluster

aws ecs list-container-instances --cluster ecs-default
CONTAINERINSTANCEARNS   arn:aws:ecs:us-east-1:XXX:container-instance/3716fa63-0e9b-42b0-b10c-ebc7842580ca
CONTAINERINSTANCEARNS   arn:aws:ecs:us-east-1:XXX:container-instance/5360ccef-4478-4b2c-9ac0-9d8bf76200f2

devops-tf-ecs's People

Contributors

voronenko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.