Sha256: 4a65079ddccb933235025b3f5fab1aea6b929878ac953ad320ae6cc2352c0aac

Contents?: true

Size: 848 Bytes

Versions: 11

Compression:

Stored size: 848 Bytes

Contents

---
title: sonic ecs sh
reference: true
---

## Usage

    sonic ecs sh [ECS_SERVICE]

## Description

docker run with the service on a container instance

Ssh into an ECS container instance and runs a docker container using the same
environment and image as the specified running service.

Examples:

    $ sonic ecs sh --cluster my-cluster my-service
    $ sonic ecs sh --cluster my-cluster my-service

# If there are flags in the command that you want to pass down to the docker
run command you will need to put the command in single quotes.  This is due to
the way Thor (what this tool uses) parses options.

    $ sonic ecs sh --cluster production-hi hi-web 'rake -T'


## Options

```
[--bastion=BASTION]  # Bastion jump host to use.  Defaults to no bastion server.
[--cluster=CLUSTER]  # ECS Cluster to use.  Default cluster is default
```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sonic-screwdriver-2.2.7 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.6 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.5 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.4 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.3 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.2 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.1 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.2.0 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.1.1 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.1.0 docs/_reference/sonic-ecs-sh.md
sonic-screwdriver-2.0.0 docs/_reference/sonic-ecs-sh.md