404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
**Example 1: To create a new cluster**

The following ``create-cluster`` example creates a cluster. ::

    aws ecs create-cluster \
        --cluster-name MyCluster

Output::

    {
        "cluster": {
            "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/MyCluster",
            "clusterName": "MyCluster",
            "status": "ACTIVE",
            "registeredContainerInstancesCount": 0,
            "pendingTasksCount": 0,
            "runningTasksCount": 0,
            "activeServicesCount": 0,
            "statistics": [],
            "tags": []
        }
    }

For more information, see `Creating a Cluster <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create_cluster.html>`__ in the *Amazon ECS Developer Guide*.

**Example 2: To create a new cluster using capacity providers**

The following ``create-cluster`` example creates a cluster and associates two existing capacity providers with it. The ``create-capacity-provider`` command is used to create a capacity provider. Specifying a default capacity provider strategy is optional, but recommended. In this example, we create a cluster named ``MyCluster`` and associate the ``MyCapacityProvider1`` and ``MyCapacityProvider2`` capacity providers with it. A default capacity provider strategy is specified that spreads the tasks evenly across both capacity providers.

    aws ecs create-cluster \
        --cluster-name MyCluster \
        --capacity-providers MyCapacityProvider1 MyCapacityProvider2 \
        --default-capacity-provider-strategy capacityProvider=MyCapacityProvider1,weight=1 capacityProvider=MyCapacityProvider2,weight=1 

Output::

    {
        "cluster": {
            "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/MyCluster",
            "clusterName": "MyCluster",
            "status": "PROVISIONING",
            "registeredContainerInstancesCount": 0,
            "pendingTasksCount": 0,
            "runningTasksCount": 0,
            "activeServicesCount": 0,
            "statistics": [],
            "settings": [
                {
                    "name": "containerInsights",
                    "value": "enabled"
                }
            ],
            "capacityProviders": [
                "MyCapacityProvider1",
                "MyCapacityProvider2"
            ],
            "defaultCapacityProviderStrategy": [
                {
                    "capacityProvider": "MyCapacityProvider1",
                    "weight": 1,
                    "base": 0
                },
                {
                    "capacityProvider": "MyCapacityProvider2",
                    "weight": 1,
                    "base": 0
                }
            ],
            "attachments": [
               {
                    "id": "0fb0c8f4-6edd-4de1-9b09-17e470ee1918",
                    "type": "asp",
                    "status": "PRECREATED",
                    "details": [
                        {
                            "name": "capacityProviderName",
                            "value": "MyCapacityProvider1"
                        },
                        {
                            "name": "scalingPlanName",
                            "value": "ECSManagedAutoScalingPlan-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
                        }
                    ]
                },
                {
                    "id": "ae592060-2382-4663-9476-b015c685593c",
                    "type": "asp",
                    "status": "PRECREATED",
                    "details": [
                        {
                            "name": "capacityProviderName",
                            "value": "MyCapacityProvider2"
                        },
                        {
                            "name": "scalingPlanName",
                            "value": "ECSManagedAutoScalingPlan-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
                        }
                    ]
                }
            ],
            "attachmentsStatus": "UPDATE_IN_PROGRESS"
        }
    }

For more information, see `Cluster capacity providers <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-capacity-providers.html>`__ in the *Amazon ECS Developer Guide*.

**Example 3: To create a new cluster with multiple tags**

The following ``create-cluster`` example creates a cluster with multiple tags.  For more information about adding tags using shorthand syntax, see `Using Shorthand Syntax with the AWS Command Line Interface <https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-shorthand.html>`_ in the *AWS CLI User Guide*. ::

    aws ecs create-cluster \
        --cluster-name MyCluster \
        --tags key=key1,value=value1 key=key2,value=value2 key=key3,value=value3

Output::

    {
        "cluster": {
            "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/MyCluster",
            "clusterName": "MyCluster",
            "status": "ACTIVE",
            "registeredContainerInstancesCount": 0,
            "pendingTasksCount": 0,
            "runningTasksCount": 0,
            "activeServicesCount": 0,
            "statistics": [],
            "tags": [
                {
                    "key": "key1",
                    "value": "value1"
                },
                {
                    "key": "key2",
                    "value": "value2"
                },
                {
                    "key": "key3",
                    "value": "value3"
                }
            ]
        }
    }

For more information, see `Creating a Cluster <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create_cluster.html>`__ in the *Amazon ECS Developer Guide*.

Filemanager

Name Type Size Permission Actions
wait Folder 0755
create-capacity-provider.rst File 1.58 KB 0644
create-cluster.rst File 5.57 KB 0644
create-service.rst File 9.33 KB 0644
create-task-set.rst File 1.56 KB 0644
delete-account-setting.rst File 715 B 0644
delete-attributes.rst File 627 B 0644
delete-capacity-provider.rst File 3 KB 0644
delete-cluster.rst File 752 B 0644
delete-service.rst File 471 B 0644
delete-task-definitions.rst File 2.37 KB 0644
delete-task-set.rst File 1.59 KB 0644
deregister-container-instance.rst File 9.33 KB 0644
deregister-task-definition.rst File 1.33 KB 0644
describe-capacity-providers.rst File 3.31 KB 0644
describe-clusters.rst File 2.94 KB 0644
describe-container-instances.rst File 3.2 KB 0644
describe-services.rst File 1.84 KB 0644
describe-task-definition.rst File 1.83 KB 0644
describe-task-sets.rst File 1.68 KB 0644
describe-tasks.rst File 12.6 KB 0644
execute-command.rst File 747 B 0644
list-account-settings.rst File 1.5 KB 0644
list-attributes.rst File 853 B 0644
list-clusters.rst File 516 B 0644
list-container-instances.rst File 701 B 0644
list-services-by-namespace.rst File 680 B 0644
list-services.rst File 474 B 0644
list-tags-for-resource.rst File 574 B 0644
list-task-definition-families.rst File 927 B 0644
list-task-definitions.rst File 1.48 KB 0644
list-tasks.rst File 1 KB 0644
put-account-setting-default.rst File 770 B 0644
put-account-setting.rst File 667 B 0644
put-account-settings.rst File 543 B 0644
put-attributes.rst File 665 B 0644
put-cluster-capacity-providers.rst File 9.67 KB 0644
register-task-definition.rst File 2.62 KB 0644
run-task.rst File 1.46 KB 0644
start-task.rst File 1.94 KB 0644
stop-task.rst File 1.46 KB 0644
tag-resource.rst File 627 B 0644
untag-resource.rst File 306 B 0644
update-cluster-settings.rst File 1.04 KB 0644
update-container-agent.rst File 842 B 0644
update-container-instances-state.rst File 10.19 KB 0644
update-service-primary-task-set.rst File 1.56 KB 0644
update-service.rst File 703 B 0644
update-task-set.rst File 1.52 KB 0644