Difference between revisions of "Aws ecs create-cluster"
Jump to navigation
Jump to search
(Created page with " aws ecs create-service \ --cluster MyCluster \ --service-name MyService \ --task-definition sample-fargate:1 \ --desired-count 2 \ --launch-type FARGATE \...") |
|||
(16 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | aws ecs create-service \ | + | {{lowercase}} |
+ | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/create-cluster.html | ||
+ | [[aws ecs]] create-service \ | ||
--cluster MyCluster \ | --cluster MyCluster \ | ||
− | --service-name MyService \ | + | [[--service-name]] MyService \ |
− | --task-definition sample-fargate:1 \ | + | [[--task-definition]] sample-fargate:1 \ |
− | --desired-count 2 \ | + | [[--desired-count]] 2 \ |
− | --launch-type FARGATE \ | + | [[--launch-type]] [[FARGATE]] \ |
--platform-version LATEST \ | --platform-version LATEST \ | ||
--network-configuration "awsvpcConfiguration={subnets=[subnet-12344321],securityGroups=[sg-12344321],assignPublicIp=ENABLED}" \ | --network-configuration "awsvpcConfiguration={subnets=[subnet-12344321],securityGroups=[sg-12344321],assignPublicIp=ENABLED}" \ | ||
--tags key=key1,value=value1 key=key2,value=value2 key=key3,value=value3 | --tags key=key1,value=value1 key=key2,value=value2 key=key3,value=value3 | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[AWS::ECS]]</code>: <code>[[AWS::ECS::Cluster]], [[AWS::ECS::TaskDefinition]]</code> | ||
+ | * [[Fargate]] | ||
+ | * Terraform resource: <code>[[aws_ecs_cluster]]</code> | ||
+ | * <code>[[aws ecs register-task-definition]]</code> | ||
+ | * <code>[[--configuration]] [[executeCommandConfiguration]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{aws ecs create}} | ||
+ | * {{aws ecs}} | ||
+ | |||
+ | [[Category:AWS]] |
Latest revision as of 10:02, 29 March 2023
aws ecs create-service \ --cluster MyCluster \ --service-name MyService \ --task-definition sample-fargate:1 \ --desired-count 2 \ --launch-type FARGATE \ --platform-version LATEST \ --network-configuration "awsvpcConfiguration={subnets=[subnet-12344321],securityGroups=[sg-12344321],assignPublicIp=ENABLED}" \ --tags key=key1,value=value1 key=key2,value=value2 key=key3,value=value3
Related[edit]
AWS::ECS
:AWS::ECS::Cluster, AWS::ECS::TaskDefinition
- Fargate
- Terraform resource:
aws_ecs_cluster
aws ecs register-task-definition
--configuration executeCommandConfiguration
See also[edit]
aws ecs [ create-cluster | create-service | create-task-set | create-capacity-provider ]
,executeCommandConfiguration
- AWS ECS:
aws ecs [ create-cluster | create-service | update-service | list-clusters | list-services | describe-cluster | describe-services | describe-tasks | put-account-setting | execute-command | run-task ]
Advertising: