diff --git a/action/task-def-formation.yml b/action/task-def-formation.yml index c159734d..6a3aa29d 100644 --- a/action/task-def-formation.yml +++ b/action/task-def-formation.yml @@ -3,6 +3,7 @@ Description: AWS Fargate cluster that can span public and private subnets. Suppo public facing load balancers, private internal load balancers, and both internal and external service discovery namespaces. Parameters: + EnvironmentName: Type: String Default: development @@ -12,6 +13,7 @@ Parameters: Type: String Default: example Description: A name for the service + ImageUrl: Type: String Default: nginx @@ -22,22 +24,21 @@ Parameters: Type: Number Default: 80 Description: What port number the application inside the docker container is binding to + ContainerCpu: Type: Number Default: 256 Description: How much CPU to give the container. 1024 is 1 CPU + ContainerMemory: Type: Number Default: 512 Description: How much memory in megabytes to give the container + Prefix: Type: String Default: "test" - DesiredCount: - Type: Number - Default: 1 - Description: How many copies of the service task to run Role: Type: String Default: "" diff --git a/src/model/aws.js b/src/model/aws.js index dbc2a6b6..f884dfda 100644 --- a/src/model/aws.js +++ b/src/model/aws.js @@ -46,6 +46,10 @@ class AWS { ParameterKey: 'ImageUrl', ParameterValue: image, }, + { + ParameterKey: 'ServiceName', + ParameterValue: taskDefStackName, + }, ], }).promise(); await CF.waitFor('stackCreateComplete', { StackName: taskDefStackName }).promise();