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
|
Type: String
|
||||||
Default: cache
|
Default: cache
|
||||||
Description: A name for the service
|
Description: A name for the service
|
||||||
# ImageUrl:
|
ImageUrl:
|
||||||
# Type: String
|
Type: String
|
||||||
# Description: The url of a docker image that contains the application process that
|
Description: The url of a docker image that contains the application process that
|
||||||
# will handle the traffic for this service
|
will handle the traffic for this service
|
||||||
ContainerCpu:
|
ContainerCpu:
|
||||||
Type: Number
|
Type: Number
|
||||||
Default: 256
|
Default: 256
|
||||||
@@ -58,8 +58,8 @@ Resources:
|
|||||||
- Name: !Ref 'ServiceName'
|
- Name: !Ref 'ServiceName'
|
||||||
Cpu: !Ref 'ContainerCpu'
|
Cpu: !Ref 'ContainerCpu'
|
||||||
Memory: !Ref 'ContainerMemory'
|
Memory: !Ref 'ContainerMemory'
|
||||||
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
# Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
||||||
# Image: !Ref ImageUrl
|
Image: !Ref ImageUrl
|
||||||
LogConfiguration:
|
LogConfiguration:
|
||||||
LogDriver: 'awslogs'
|
LogDriver: 'awslogs'
|
||||||
Options:
|
Options:
|
||||||
|
@@ -9,10 +9,10 @@ Parameters:
|
|||||||
Type: String
|
Type: String
|
||||||
Default: database
|
Default: database
|
||||||
Description: A name for the service
|
Description: A name for the service
|
||||||
# ImageUrl:
|
ImageUrl:
|
||||||
# Type: String
|
Type: String
|
||||||
# Description: The url of a docker image that contains the application process that
|
Description: The url of a docker image that contains the application process that
|
||||||
# will handle the traffic for this service
|
will handle the traffic for this service
|
||||||
ContainerCpu:
|
ContainerCpu:
|
||||||
Type: Number
|
Type: Number
|
||||||
Default: 256
|
Default: 256
|
||||||
@@ -58,8 +58,8 @@ Resources:
|
|||||||
- Name: !Ref 'ServiceName'
|
- Name: !Ref 'ServiceName'
|
||||||
Cpu: !Ref 'ContainerCpu'
|
Cpu: !Ref 'ContainerCpu'
|
||||||
Memory: !Ref 'ContainerMemory'
|
Memory: !Ref 'ContainerMemory'
|
||||||
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
# Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
||||||
# Image: !Ref ImageUrl
|
Image: !Ref ImageUrl
|
||||||
LogConfiguration:
|
LogConfiguration:
|
||||||
LogDriver: 'awslogs'
|
LogDriver: 'awslogs'
|
||||||
Options:
|
Options:
|
||||||
|
@@ -9,10 +9,10 @@ Parameters:
|
|||||||
Type: String
|
Type: String
|
||||||
Default: server
|
Default: server
|
||||||
Description: A name for the service
|
Description: A name for the service
|
||||||
# ImageUrl:
|
ImageUrl:
|
||||||
# Type: String
|
Type: String
|
||||||
# Description: The url of a docker image that contains the application process that
|
Description: The url of a docker image that contains the application process that
|
||||||
# will handle the traffic for this service
|
will handle the traffic for this service
|
||||||
ContainerPort:
|
ContainerPort:
|
||||||
Type: Number
|
Type: Number
|
||||||
Default: 80
|
Default: 80
|
||||||
@@ -74,8 +74,8 @@ Resources:
|
|||||||
- Name: !Ref 'ServiceName'
|
- Name: !Ref 'ServiceName'
|
||||||
Cpu: !Ref 'ContainerCpu'
|
Cpu: !Ref 'ContainerCpu'
|
||||||
Memory: !Ref 'ContainerMemory'
|
Memory: !Ref 'ContainerMemory'
|
||||||
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
# Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/microservices/${ServiceName}:latest
|
||||||
# Image: !Ref ImageUrl
|
Image: !Ref ImageUrl
|
||||||
PortMappings:
|
PortMappings:
|
||||||
- ContainerPort: !Ref 'ContainerPort'
|
- ContainerPort: !Ref 'ContainerPort'
|
||||||
LogConfiguration:
|
LogConfiguration:
|
||||||
|
Reference in New Issue
Block a user