File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,19 @@ Resources:
24
24
Principal :
25
25
Service : ecs-tasks.amazonaws.com
26
26
Path : /gocapture/
27
+ Vpc :
28
+ Type : AWS::EC2::VPC
29
+ Properties :
30
+ CidrBlock : 10.0.0.0/16
31
+ SecurityGroup :
32
+ Type : AWS::EC2::SecurityGroup
33
+ Properties :
34
+ GroupName : GoCaptureSecurityGroup
35
+ VpcId : !Ref Vpc
36
+ PublicSubnet :
37
+ Type : AWS::EC2::Subnet
38
+ Properties :
39
+ VpcId : !Ref Vpc
27
40
Cluster :
28
41
Type : AWS::ECS::Cluster
29
42
Properties :
@@ -34,6 +47,13 @@ Resources:
34
47
Cluster : !Ref Cluster
35
48
DesiredCount : 1
36
49
LaunchType : FARGATE
50
+ NetworkConfiguration :
51
+ AwsvpcConfiguration :
52
+ AssignPublicIp : ENABLED
53
+ SecurityGroups :
54
+ - !Ref SecurityGroup
55
+ Subnets :
56
+ - !Ref PublicSubnet
37
57
ServiceName : GoCaptureECSService
38
58
TaskDefinition : !Ref TaskDefinition
39
59
TaskDefinition :
You can’t perform that action at this time.
0 commit comments