You've already forked microservices
mirror of
https://github.com/ebosas/microservices.git
synced 2025-08-24 20:08:55 +02:00
Add ECS deployment to pipeline
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user