Skip to content

Commit

Permalink
Split cloudformation.yml to service and task definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Nov 23, 2023
1 parent 4ec98e4 commit e1dd407
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
27 changes: 27 additions & 0 deletions tsgctf-test-crypto/service.cloudformation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
AWSTemplateFormatVersion: 2010-09-09
Outputs:
ECSServiceArn:
Value: !Ref ECSService
ECSServiceAddress:
Value: !GetAtt ECSService.LoadBalancerDNSName
Resources:
ECSService:
Type: 'AWS::ECS::Service'
Properties:
ServiceName: tsgctf-test-crypto-service
Cluster: tsgctf-test
DesiredCount: 1
CapacityProviderStrategy:
- Base: 0
Weight: 1
CapacityProvider: FARGATE_SPOT
NetworkConfiguration:
AwsvpcConfiguration:
AssignPublicIp: ENABLED
SecurityGroups:
- sg-3b66cb5f
Subnets:
- subnet-681e4b31
- subnet-e686fdce
- subnet-f4003d83
TaskDefinition: tsgctf-test-crypto
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,4 @@ Resources:
RequiresCompatibilities:
- FARGATE
RuntimePlatform:
OperatingSystemFamily: LINUX
ECSService:
Type: 'AWS::ECS::Service'
Properties:
ServiceName: tsgctf-test-crypto-service
Cluster: tsgctf-test
DesiredCount: 1
CapacityProviderStrategy:
- Base: 0
Weight: 1
CapacityProvider: FARGATE_SPOT
NetworkConfiguration:
AwsvpcConfiguration:
AssignPublicIp: ENABLED
SecurityGroups:
- sg-3b66cb5f
Subnets:
- subnet-681e4b31
- subnet-e686fdce
- subnet-f4003d83
TaskDefinition: !Ref ECSTaskDefinition
OperatingSystemFamily: LINUX

0 comments on commit e1dd407

Please sign in to comment.