Skip to content

Commit

Permalink
reduce JSON CloudFormation template size (#2028)
Browse files Browse the repository at this point in the history
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html

for file in tests/examples_output/*.template; do
    cat <<< $(jq . --indent 1 $file) > $file
done
  • Loading branch information
PatMyron authored Apr 1, 2022
1 parent 4e1292b commit aea9383
Show file tree
Hide file tree
Showing 88 changed files with 11,189 additions and 11,189 deletions.
490 changes: 245 additions & 245 deletions tests/examples_output/ApiGateway.template

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions tests/examples_output/ApplicationAutoScalingSample.template
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"Resources": {
"scalableTarget": {
"Properties": {
"MaxCapacity": 2,
"MinCapacity": 1,
"ResourceId": "service/ecsStack",
"RoleARN": "Access Management (IAM) role",
"ScalableDimension": "ecs:service:DesiredCount",
"ServiceNamespace": "ecs"
},
"Type": "AWS::ApplicationAutoScaling::ScalableTarget"
},
"scalingPolicy": {
"Properties": {
"PolicyName": "AStepPolicy",
"PolicyType": "StepScaling",
"ScalingTargetId": {
"Ref": "scalableTarget"
},
"StepScalingPolicyConfiguration": {
"AdjustmentType": "PercentChangeInCapacity",
"Cooldown": 60,
"MetricAggregationType": "Average",
"StepAdjustments": [
{
"MetricIntervalLowerBound": 0,
"ScalingAdjustment": 200
}
]
}
},
"Type": "AWS::ApplicationAutoScaling::ScalingPolicy"
}
"Resources": {
"scalableTarget": {
"Properties": {
"MaxCapacity": 2,
"MinCapacity": 1,
"ResourceId": "service/ecsStack",
"RoleARN": "Access Management (IAM) role",
"ScalableDimension": "ecs:service:DesiredCount",
"ServiceNamespace": "ecs"
},
"Type": "AWS::ApplicationAutoScaling::ScalableTarget"
},
"scalingPolicy": {
"Properties": {
"PolicyName": "AStepPolicy",
"PolicyType": "StepScaling",
"ScalingTargetId": {
"Ref": "scalableTarget"
},
"StepScalingPolicyConfiguration": {
"AdjustmentType": "PercentChangeInCapacity",
"Cooldown": 60,
"MetricAggregationType": "Average",
"StepAdjustments": [
{
"MetricIntervalLowerBound": 0,
"ScalingAdjustment": 200
}
]
}
},
"Type": "AWS::ApplicationAutoScaling::ScalingPolicy"
}
}
}
Loading

0 comments on commit aea9383

Please sign in to comment.