Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

https://opsera.atlassian.net/browse/OPL-691

 AWS ECS Service Creation Help
  1. Select Create AWS ECS Service from the Type drop down menu.

  2. This then presents user with options that are required for service creation :

    • AWS Tool - Configured in Tool Registry

    • Required Compatibility

    • Cluster Name -

    • Existing VPC

    • Desired Count - This is the count of deployments desired. Creation of the number of cluster replications. Number replications of the image that we are going to deploy

    • Service Log Group - any created name

    • Load Balancer ARN

    • Execution Role ARN

    • Subnets - Add any 2 subnets from drop down.

this creates a template.

then create pipeline with 3 steps

build

docker push

ECS deploy

 AWS ECS Service Creation Pipeline Setup Help

In docker push step, select service from created task

in ECS deploy step, ?

Service Port must be changed for every pipeline run.

Switch not working, when it works the port will not have to be changed every pipeline run.

AWS ECS Service Creation Help Documentation

Similar to ECS Cluster Creation, ECS Service creation templates can also be created via the Tasks tab.

  1. Navigate to Tasks and click +Create New Task

  2. Click Create AWS ECS Service from the Type drop down menu.

  3. This then presents user with options that are required for service creation:

  • AWS Tool

  • Required Compatibility

  • Cluster Name

  • Existing VPC

  • Desired Count

  • Service Log Group

  • Load Balancer ARN

Unlike Cluster creation, service creation is not just localized to the Tasks tab and spans across tasks and the pipeline. The reason for this is that Service Creation and deployment requires the latest image URL in order to deploy and that is generated during pipeline runtime. Hence currently the workflow is separated into two parts where the user enters certain static information in the Tasks page and then links the task to the respective Docker step in the pipeline.

Once the user successfully creates a template they can then create a pipeline in the pipelines tab and add the AWS ECS Deploy step which is used to create and deploy services.

The pipeline to deploy a service requires a Docker Build and Docker Push step after which the user can add the AWS ECS Deploy step. The AWS ECS Deploy asks the following information from the user:

In the pipeline step the user then needs to select the step that conducts their docker push and they need to select the service template that they created in the Tasks page. Along with this we have the option to dynamically generate service names on runtime as AWS does not allow two services to have the same name. The user can give a prefix to the service and the pipeline will generate a unique service name with the prefix and the run count when the pipeline runs.

Additionally, the user also needs to enter the port they they want to deploy the service at.

In future we will be adding an option to delete the service running at a particular port before the deployment. This is not available yet hence that option is disabled in the pipeline for now.

Take help from Ravi Teja (Unlicensed) in order to get the right values for service creation and deployment as similar to cluster creation, this is also very nuanced.

  • No labels