Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Volkov committed Apr 2, 2024
1 parent 2324693 commit 8368ea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 69 deletions.
6 changes: 0 additions & 6 deletions internal/cdk/testdata/tree_nostage.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@
{
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"gitlab.com:aud": "https://temabit.gitlab.com"
},
"StringLike": {
"gitlab.com:sub": "project_path:temabit/merchantbilling/*"
}
},
"Effect": "Allow",
"Principal": {
Expand Down
68 changes: 5 additions & 63 deletions internal/cdk/testdata/tree_stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@
"ConfigDeliveryChannel": {
"id": "ConfigDeliveryChannel",
"path": "SystemInfraStageDev/SecurityRequirements/SecurityRequirements/AwsConfig/ConfigDeliveryChannel",
"attributes": {
"aws:cdk:cloudformation:type": "AWS::Config::DeliveryChannel",
"aws:cdk:cloudformation:props": {
"name": "temabit-app-sdlc-dev-aws-config-delivery-channel",
"s3BucketName": "fozzy-sec-logarchive-prod-aws-config-central"
}
},
"constructInfo": {
"fqn": "aws-cdk-lib.aws_config.CfnDeliveryChannel",
"version": "2.127.0"
Expand Down Expand Up @@ -365,15 +358,6 @@
"version": "2.127.0"
}
},
"AssetBucket": {
"id": "AssetBucket",
"path": "SystemInfraStageDev/SecurityRequirements/AWS679f53fac002430cb0da5b7982bd2287/Code/AssetBucket",
"constructInfo": {
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
"version": "2.127.0"
}
}
},
"constructInfo": {
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
"version": "2.127.0"
Expand All @@ -385,10 +369,6 @@
"attributes": {
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
"aws:cdk:cloudformation:props": {
"code": {
"s3Bucket": "cdk-hnb659fds-assets-471112750670-eu-central-1",
"s3Key": "ed6cd104ff5f101d06dae8cb2b87cc6e6d69b9a22055b467ea6cae10ff023023.zip"
},
"handler": "index.handler",
"loggingConfig": {
"logGroup": {
Expand Down Expand Up @@ -504,13 +484,7 @@
"notificationType": "ACTUAL",
"threshold": 90,
"thresholdType": "PERCENTAGE"
},
"subscribers": [
{
"address": "[email protected]",
"subscriptionType": "EMAIL"
}
]
}
}
]
}
Expand Down Expand Up @@ -551,13 +525,7 @@
"notificationType": "ACTUAL",
"threshold": 90,
"thresholdType": "PERCENTAGE"
},
"subscribers": [
{
"address": "[email protected]",
"subscriptionType": "EMAIL"
}
]
}
}
]
}
Expand Down Expand Up @@ -598,13 +566,7 @@
"notificationType": "ACTUAL",
"threshold": 90,
"thresholdType": "PERCENTAGE"
},
"subscribers": [
{
"address": "[email protected]",
"subscriptionType": "EMAIL"
}
]
}
}
]
}
Expand Down Expand Up @@ -645,13 +607,7 @@
"notificationType": "ACTUAL",
"threshold": 90,
"thresholdType": "PERCENTAGE"
},
"subscribers": [
{
"address": "[email protected]",
"subscriptionType": "EMAIL"
}
]
}
}
]
}
Expand All @@ -674,14 +630,6 @@
"cfnCostAnomalyMonitor": {
"id": "cfnCostAnomalyMonitor",
"path": "SystemInfraStageDev/FinopsPractices/FinopsPractices/CostAnomalyDetection/cfnCostAnomalyMonitor",
"attributes": {
"aws:cdk:cloudformation:type": "AWS::CE::AnomalyMonitor",
"aws:cdk:cloudformation:props": {
"monitorDimension": "SERVICE",
"monitorName": "temabit-app-sdlc-dev-dev-monitor-anomaly-detected-is-greater-than-1",
"monitorType": "DIMENSIONAL"
}
},
"constructInfo": {
"fqn": "aws-cdk-lib.aws_ce.CfnAnomalyMonitor",
"version": "2.127.0"
Expand All @@ -702,13 +650,7 @@
]
}
],
"subscribers": [
{
"address": "[email protected]",
"type": "EMAIL"
}
],
"subscriptionName": "temabit-app-sdlc-dev-dev-subscription-anomaly-detected-is-greater-than-1",

"thresholdExpression": "{\"Dimensions\":{\"Key\":\"ANOMALY_TOTAL_IMPACT_PERCENTAGE\",\"MatchOptions\":[\"GREATER_THAN_OR_EQUAL\"],\"Values\":[\"1\"]}}"
}
},
Expand Down

0 comments on commit 8368ea4

Please sign in to comment.