From 9a981c3c32a5af68fe9ba111751d3a216bf85d27 Mon Sep 17 00:00:00 2001 From: ebosas Date: Wed, 3 Nov 2021 09:30:31 +0200 Subject: [PATCH] Add ECS deployment to pipeline --- deployments/services-ecs/cache.yml | 12 ++++++------ deployments/services-ecs/database.yml | 12 ++++++------ deployments/services-ecs/server.yml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/deployments/services-ecs/cache.yml b/deployments/services-ecs/cache.yml index 20db679..df5121f 100644 --- a/deployments/services-ecs/cache.yml +++ b/deployments/services-ecs/cache.yml @@ -9,10 +9,10 @@ Parameters: Type: String Default: cache Description: A name for the service - # ImageUrl: - # Type: String - # Description: The url of a docker image that contains the application process that - # will handle the traffic for this service + ImageUrl: + Type: String + Description: The url of a docker image that contains the application process that + will handle the traffic for this service ContainerCpu: Type: Number Default: 256 @@ -58,8 +58,8 @@ Resources: - Name: !Ref 'ServiceName' Cpu: !Ref 'ContainerCpu' Memory: !Ref 'ContainerMemory' - Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest - # Image: !Ref ImageUrl + # Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest + Image: !Ref ImageUrl LogConfiguration: LogDriver: 'awslogs' Options: diff --git a/deployments/services-ecs/database.yml b/deployments/services-ecs/database.yml index 66d147e..78e8c4f 100644 --- a/deployments/services-ecs/database.yml +++ b/deployments/services-ecs/database.yml @@ -9,10 +9,10 @@ Parameters: Type: String Default: database Description: A name for the service - # ImageUrl: - # Type: String - # Description: The url of a docker image that contains the application process that - # will handle the traffic for this service + ImageUrl: + Type: String + Description: The url of a docker image that contains the application process that + will handle the traffic for this service ContainerCpu: Type: Number Default: 256 @@ -58,8 +58,8 @@ Resources: - Name: !Ref 'ServiceName' Cpu: !Ref 'ContainerCpu' Memory: !Ref 'ContainerMemory' - Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest - # Image: !Ref ImageUrl + # Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest + Image: !Ref ImageUrl LogConfiguration: LogDriver: 'awslogs' Options: diff --git a/deployments/services-ecs/server.yml b/deployments/services-ecs/server.yml index c7f206e..a9ba40c 100644 --- a/deployments/services-ecs/server.yml +++ b/deployments/services-ecs/server.yml @@ -9,10 +9,10 @@ Parameters: Type: String Default: server Description: A name for the service - # ImageUrl: - # Type: String - # Description: The url of a docker image that contains the application process that - # will handle the traffic for this service + ImageUrl: + Type: String + Description: The url of a docker image that contains the application process that + will handle the traffic for this service ContainerPort: Type: Number Default: 80 @@ -74,8 +74,8 @@ Resources: - Name: !Ref 'ServiceName' Cpu: !Ref 'ContainerCpu' Memory: !Ref 'ContainerMemory' - Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest - # Image: !Ref ImageUrl + # Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest + Image: !Ref ImageUrl PortMappings: - ContainerPort: !Ref 'ContainerPort' LogConfiguration: