About
Web - Micro-service in Aws is managed by the ECS service
AWS offers managed services for:
Articles Related
Management
create-service
aws ecs create-service --cli-input-json file://module-2/aws-cli/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: