Skip to content

Commit 874024a

Browse files
committed
chore: limit ingress traffic and delete unnecessary permissions
1 parent b2a3049 commit 874024a

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

templates/CloudConnector.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,6 @@ Resources:
149149
- "ecs:DescribeTaskDefinition"
150150
Resource:
151151
- "*"
152-
- PolicyName: SecretsReader
153-
PolicyDocument:
154-
Version: "2012-10-17"
155-
Statement:
156-
- Effect: Allow
157-
Action:
158-
- "kms:Decrypt"
159-
- "secretsmanager:GetSecretValue"
160-
Resource:
161-
- "*"
162152
- PolicyName: ECRReader
163153
PolicyDocument:
164154
Version: "2012-10-17"
@@ -326,19 +316,11 @@ Resources:
326316
VpcId: !Ref VPC
327317
GroupName: !Sub "${AWS::StackName}-CloudConnector"
328318
GroupDescription: CloudConnector workload Security Group
329-
SecurityGroupIngress:
330-
- CidrIp: 0.0.0.0/0
331-
IpProtocol: "tcp"
332-
FromPort: 80
333-
ToPort: 80
319+
SecurityGroupEgress:
334320
- CidrIp: 0.0.0.0/0
335321
IpProtocol: "tcp"
336322
FromPort: 443
337323
ToPort: 443
338-
- CidrIp: 0.0.0.0/0
339-
IpProtocol: "tcp"
340-
FromPort: 5000
341-
ToPort: 5000
342324
Tags:
343325
- Key: Name
344326
Value: !Sub "${AWS::StackName}-CloudConnector"

0 commit comments

Comments
 (0)