Skip to content

ECS

Amazon ECS as a Cloud Provider

  • 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.
  • In this and Account which is mapping to Spinnaker AWS account, will be able to authenticate all by itself against a given AWS account.

    Prerequisites:

    • Availability of an ECS Cluster is Mandatory and enough space is also mandatory to deploy the containers created.
    • By default the Clusters Network will be passed from Clusters to Containers. As the ENIs are not yet supported in Spinnaker.

    Define Spinnaker Cloud driver role

    • Any role that cloud driver assumes to have for ECS account needs to have a Spinnaker IAM assumed role. For information on how to set up the role Clouddriver assumes, see the AWS documentation For information on how to modify IAM roles in the AWS console, see the AWS documentation
    {
     "Version": "2012-10-17",
     "Statement": [
      {
        "Effect": "Allow",
        "Principal": {
            "Service": [
                "ecs.amazonaws.com",
                "application-autoscaling.amazonaws.com"
            ]
         },
         "Action": "sts:AssumeRole"
        }
     ]
    }
    

    Configure Halyard to Add ECS Accounts

    • Execute the below command to add ECS accounts to the Halyard
    hal config provider ecs account add ecs-account-name --aws-account aws-account-name
    

Note

From the above command ensure to modify the ecs-account name as per the requirement. Also, modify the aws-account name of a valid AWS account.

Comments