Amazon Elastic Container Service
Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster. You can host your cluster on a serverless infrastructure that is managed by Amazon ECS by launching your services or tasks using the Fargate launch type. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage by using the EC2 launch type. For more information about launch types, see Amazon ECS Launch Types.
Amazon ECS lets you launch and stop container-based applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features.
You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon ECS eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.
ecs()
create_cluster | Creates a new Amazon ECS cluster |
create_service | Runs and maintains a desired number of tasks from a specified task definition |
create_task_set | Create a task set in the specified cluster and service |
delete_account_setting | Modifies the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account |
delete_attributes | Deletes one or more custom attributes from an Amazon ECS resource |
delete_cluster | Deletes the specified cluster |
delete_service | Deletes a specified service within a cluster |
delete_task_set | Deletes a specified task set within a service |
deregister_container_instance | Deregisters an Amazon ECS container instance from the specified cluster |
deregister_task_definition | Deregisters the specified task definition by family and revision |
describe_clusters | Describes one or more of your clusters |
describe_container_instances | Describes Amazon Elastic Container Service container instances |
describe_services | Describes the specified services running in your cluster |
describe_task_definition | Describes a task definition |
describe_task_sets | Describes the task sets in the specified cluster and service |
describe_tasks | Describes a specified task or tasks |
discover_poll_endpoint | This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent |
list_account_settings | Lists the account settings for an Amazon ECS resource for a specified principal |
list_attributes | Lists the attributes for Amazon ECS resources within a specified target type and cluster |
list_clusters | Returns a list of existing clusters |
list_container_instances | Returns a list of container instances in a specified cluster |
list_services | Lists the services that are running in a specified cluster |
list_tags_for_resource | List the tags for an Amazon ECS resource |
list_task_definition_families | Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any ACTIVE task definition revisions) |
list_task_definitions | Returns a list of task definitions that are registered to your account |
list_tasks | Returns a list of tasks for a specified cluster |
put_account_setting | Modifies the ARN and resource ID format of a resource type for a specified IAM user, IAM role, or the root user for an account |
put_account_setting_default | Modifies the ARN and resource ID format of a resource type for all IAM users on an account for which no individual account setting has been set |
put_attributes | Create or update an attribute on an Amazon ECS resource |
register_container_instance | This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent |
register_task_definition | Registers a new task definition from the supplied family and containerDefinitions |
run_task | Starts a new task using the specified task definition |
start_task | Starts a new task from the specified task definition on the specified container instance or instances |
stop_task | Stops a running task |
submit_container_state_change | This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent |
submit_task_state_change | This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent |
tag_resource | Associates the specified tags to a resource with the specified resourceArn |
untag_resource | Deletes specified tags from a resource |
update_container_agent | Updates the Amazon ECS container agent on a specified container instance |
update_container_instances_state | Modifies the status of an Amazon ECS container instance |
update_service | Modifies the parameters of a service |
update_service_primary_task_set | Modifies which task set in a service is the primary task set |
# NOT RUN {
# This example creates a cluster in your default region.
# }
# NOT RUN {
svc <- ecs()
svc$create_cluster(
clusterName = "my_cluster"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab