Aws - Service (Microservice)

> AWS (Amazon Web Services)

1 - About

Micro-service in Aws is managed by the ECS service

AWS offers managed services for:

Advertising

3 - Management

3.1 - create-service

aws ecs create-service --cli-input-json file://module-2/aws-cli/service-definition.json
service-definition.json
{
  "serviceName": "MythicalMysfits-Service",
  "cluster": "MythicalMysfits-Cluster",
  "launchType": "FARGATE",
  "deploymentConfiguration": {
    "maximumPercent": 200,
    "minimumHealthyPercent": 0
  },
  "desiredCount": 1,
  "networkConfiguration": {
    "awsvpcConfiguration": {
      "assignPublicIp": "DISABLED",
      "securityGroups": [
        "REPLACE_ME_SECURITY_GROUP_ID"
      ],
      "subnets": [
        "REPLACE_ME_PRIVATE_SUBNET_ONE",
        "REPLACE_ME_PRIVATE_SUBNET_TWO"
      ]
    }
  },
  "taskDefinition": "mythicalmysfitsservice",
  "loadBalancers": [
    {
      "containerName": "MythicalMysfits-Service",
      "containerPort": 8080,
      "targetGroupArn": "REPLACE_ME_NLB_TARGET_GROUP_ARN"
    }
  ]
}

where:

4 - Documentation / Reference