Skip to content

Commit 6fff849

Browse files
author
Néstor Salceda
committed
refactor: Remove old telemetry parameters
1 parent afe48a1 commit 6fff849

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

templates/CloudConnector.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,12 @@ Parameters:
3030
- "Yes"
3131
- "No"
3232
Default: "Yes"
33-
CloudBenchDeployed:
34-
Type: String
35-
AllowedValues:
36-
- "Yes"
37-
- "No"
38-
ECRDeployed:
39-
Type: String
40-
AllowedValues:
41-
- "Yes"
42-
- "No"
43-
ECSDeployed:
44-
Type: String
45-
AllowedValues:
46-
- "Yes"
47-
- "No"
4833
CloudTrailTopic:
4934
Type: String
5035
Description: ARN of the SNS Topic to subscribe
5136

5237
Conditions:
5338
VerifySSL: !Equals [!Ref VerifySSL, "Yes"]
54-
CloudBenchDeployed: !Equals [!Ref CloudBenchDeployed, "Yes"]
55-
ECRDeployed: !Equals [!Ref ECRDeployed, "Yes"]
56-
ECSDeployed: !Equals [!Ref ECSDeployed, "Yes"]
5739

5840
Resources:
5941

@@ -213,12 +195,6 @@ Resources:
213195
Value: !If [ VerifySSL, "true", "false" ]
214196
- Name: TELEMETRY_DEPLOYMENT_METHOD
215197
Value: cft
216-
- Name: TELEMETRY_CLOUDVISION_CLOUDBENCH_DEPLOYED
217-
Value: !If [ CloudBenchDeployed, "true", "false" ]
218-
- Name: TELEMETRY_CLOUDVISION_ECR_DEPLOYED
219-
Value: !If [ ECRDeployed, "true", "false" ]
220-
- Name: TELEMETRY_CLOUDVISION_ECS_DEPLOYED
221-
Value: !If [ ECSDeployed, "true", "false" ]
222198
- Name: CONFIG_PATH
223199
Value: !Sub s3://${S3ConfigBucket}/cloud-connector.yaml
224200
Secrets:

templates/CloudScanning.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ Parameters:
2727
- "Yes"
2828
- "No"
2929
Default: "Yes"
30-
ECRDeployed:
31-
Type: String
32-
AllowedValues:
33-
- "Yes"
34-
- "No"
35-
ECSDeployed:
36-
Type: String
37-
AllowedValues:
38-
- "Yes"
39-
- "No"
4030
BuildProject:
4131
Type: String
4232
Default: ""
@@ -46,8 +36,6 @@ Parameters:
4636

4737
Conditions:
4838
VerifySSL: !Equals [!Ref VerifySSL, "Yes"]
49-
ECRDeployed: !Equals [!Ref ECRDeployed, "Yes"]
50-
ECSDeployed: !Equals [!Ref ECSDeployed, "Yes"]
5139

5240
Resources:
5341

@@ -212,10 +200,8 @@ Resources:
212200
Value: 30s
213201
- Name: CODEBUILD_PROJECT
214202
Value: !Sub ${BuildProject}
215-
- Name: ECR_DEPLOYED
216-
Value: !If [ ECRDeployed, "true", "false" ]
217-
- Name: ECS_DEPLOYED
218-
Value: !If [ ECSDeployed, "true", "false" ]
203+
- Name: TELEMETRY_DEPLOYMENT_METHOD
204+
Value: cft
219205
Secrets:
220206
- Name: SECURE_URL
221207
ValueFrom: !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${SysdigSecureEndpointSsm}

templates/CloudVision.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ Resources:
178178
SysdigSecureAPITokenSsm: !Ref SysdigSecureAPITokenParameter
179179
S3ConfigBucket: !Ref S3ConfigBucket
180180
VerifySSL: !If [ EndpointIsSaas, "Yes", "No" ]
181-
CloudBenchDeployed: !Ref CloudBenchDeploy
182-
ECRDeployed: !Ref ECRImageScanningDeploy
183-
ECSDeployed: !Ref ECSImageScanningDeploy
184181
CloudTrailTopic: !If [ DeployCloudTrail, !GetAtt ["CloudTrailStack", "Outputs.Topic"], !Ref ExistentCloudTrailSNSTopic ]
185182

186183
ScanningCodeBuildStack:
@@ -205,8 +202,6 @@ Resources:
205202
SysdigSecureEndpointSsm: !Ref SysdigSecureEndpointParameter
206203
SysdigSecureAPITokenSsm: !Ref SysdigSecureAPITokenParameter
207204
VerifySSL: !If [ EndpointIsSaas, "Yes", "No" ]
208-
ECRDeployed: !Ref ECRImageScanningDeploy
209-
ECSDeployed: !Ref ECSImageScanningDeploy
210205
BuildProject: !GetAtt [ "ScanningCodeBuildStack", "Outputs.BuildProject" ]
211206
CloudTrailTopic: !If [ DeployCloudTrail, !GetAtt ["CloudTrailStack", "Outputs.Topic"], !Ref ExistentCloudTrailSNSTopic ]
212207

0 commit comments

Comments
 (0)