Skip to content

Commit

Permalink
multi-svc-env & lb-fargate-service v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Dec 14, 2022
1 parent 0346509 commit 8dffc42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ Resources:
Type: AWS::ECS::Service
DependsOn: LoadBalancerRule
Properties:
ServiceName: '{{service.name}}_{{service_instance.name}}'
ServiceName: '{{service.name}}_{{service_instance.name}}_spot'
Cluster: '{{environment.outputs.ClusterName}}'
LaunchType: FARGATE
CapacityProviderStrategy:
- CapacityProvider: FARGATE_SPOT
Weight: 1
DeploymentConfiguration:
MaximumPercent: 200
MinimumHealthyPercent: 75
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ Resources:
# ECS Resources
ECSCluster:
Type: AWS::ECS::Cluster
Properties:
CapacityProviders:
- FARGATE_SPOT
DefaultCapacityProviderStrategy:
- CapacityProvider: FARGATE_SPOT
Weight: 1

# A security group for the containers we will run in Fargate.
# Rules are added to this security group based on what ingress you
Expand Down

0 comments on commit 8dffc42

Please sign in to comment.