Aws ecs

From Wasya Wiki
Revision as of 17:47, 28 March 2024 by Piousbox (Talk | contribs) (Created page with " * From: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_AWSCLI_Fargate.html * From: https://stackoverflow.com/questions/52310447/is-it-possible-to-ssh-into-fa...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


 aws ecs create-cluster --cluster-name fragile-cluster


 aws ecs register-task-definition --cli-input-json file:////Users/piousbox/projects/ruby/wco_models/app/views/wco_hosting/ecs_task_definitions/hw1.json --profile ecs_driver_1
 aws ecs register-task-definition --cli-input-json file:////Users/piousbox/projects/ruby/wco_models/app/views/wco_hosting/ecs_task_definitions/example1.json --profile ecs_driver_1
 aws ecs list-task-definitions --profile ecs_driver_1



// trust relationships

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "a",
            "Effect": "Allow",
            "Principal": {
                "Service": [
                    "ecs.amazonaws.com",
                    "ecs-tasks.amazonaws.com"
                ]
            },
            "Action": "sts:AssumeRole"
        }
    ]
}