Skip to content

Commit

Permalink
feat(cfnspec): update CloudFormation spec to 7.3.0 (#4838)
Browse files Browse the repository at this point in the history
* feat(cfnspec): update CloudFormation spec to 7.3.0

* Update expectations

* Update more expectations
  • Loading branch information
rix0rrr authored and mergify[bot] committed Nov 5, 2019
1 parent 43f276a commit ed904cb
Show file tree
Hide file tree
Showing 17 changed files with 902 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-ecs/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -842,4 +850,4 @@
"Default": "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -844,6 +852,7 @@
"MinimumHealthyPercent": 50
},
"DesiredCount": 1,
"EnableECSManagedTags": false,
"HealthCheckGracePeriodSeconds": 60,
"LaunchType": "EC2",
"LoadBalancers": [
Expand Down Expand Up @@ -876,8 +885,7 @@
]
}
},
"SchedulingStrategy": "REPLICA",
"EnableECSManagedTags": false
"SchedulingStrategy": "REPLICA"
},
"DependsOn": [
"LBPublicListenerECSGroupD6A32205",
Expand Down Expand Up @@ -1033,4 +1041,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-ecs/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -866,6 +874,7 @@
"MinimumHealthyPercent": 50
},
"DesiredCount": 1,
"EnableECSManagedTags": false,
"HealthCheckGracePeriodSeconds": 60,
"LaunchType": "EC2",
"LoadBalancers": [
Expand All @@ -877,8 +886,7 @@
}
}
],
"SchedulingStrategy": "REPLICA",
"EnableECSManagedTags": false
"SchedulingStrategy": "REPLICA"
},
"DependsOn": [
"LBPublicListenerECSGroupD6A32205",
Expand Down Expand Up @@ -997,4 +1005,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-ecs/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -854,6 +862,7 @@
"MinimumHealthyPercent": 50
},
"DesiredCount": 1,
"EnableECSManagedTags": false,
"LaunchType": "EC2",
"NetworkConfiguration": {
"AwsvpcConfiguration": {
Expand All @@ -877,7 +886,6 @@
}
},
"SchedulingStrategy": "REPLICA",
"EnableECSManagedTags": false,
"ServiceRegistries": [
{
"RegistryArn": {
Expand Down Expand Up @@ -943,4 +951,4 @@
"Default": "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-ecs/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -854,9 +862,9 @@
"MinimumHealthyPercent": 50
},
"DesiredCount": 1,
"EnableECSManagedTags": false,
"LaunchType": "EC2",
"SchedulingStrategy": "REPLICA",
"EnableECSManagedTags": false,
"ServiceRegistries": [
{
"ContainerName": "frontend",
Expand Down Expand Up @@ -908,4 +916,4 @@
"Default": "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended/image_id"
}
}
}
}
20 changes: 18 additions & 2 deletions packages/@aws-cdk/aws-ecs/test/ec2/integ.spot-drain.expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,15 @@
}
},
"EcsClusterasgSpotLifecycleHookDrainHookTopic6212EC83": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-spot/EcsCluster/asgSpot"
}
]
}
},
"EcsClusterasgSpotLifecycleHookDrainHook91178D34": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down Expand Up @@ -1195,7 +1203,15 @@
}
},
"EcsClusterasgOdLifecycleHookDrainHookTopic673CE202": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-spot/EcsCluster/asgOd"
}
]
}
},
"EcsClusterasgOdLifecycleHookDrainHook03AC5A9E": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
"MinimumHealthyPercent": 50
},
"DesiredCount": 1,
"EnableECSManagedTags": false,
"HealthCheckGracePeriodSeconds": 60,
"LaunchType": "FARGATE",
"LoadBalancers": [
Expand Down Expand Up @@ -439,8 +440,7 @@
}
]
}
},
"EnableECSManagedTags": false
}
},
"DependsOn": [
"LBPublicListenerFargateGroup5EE2FBAF",
Expand Down Expand Up @@ -649,4 +649,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
"Version": "2012-10-17"
}
},
"DeletionPolicy": "Delete",
"UpdateReplacePolicy": "Delete"
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"pipelinePipeline22F2A91DArtifactsBucketC1799DCD": {
"Type": "AWS::S3::Bucket",
Expand All @@ -93,8 +93,8 @@
]
}
},
"DeletionPolicy": "Retain",
"UpdateReplacePolicy": "Retain"
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"pipelinePipeline22F2A91DArtifactsBucketEncryptionKeyAlias9530209A": {
"Type": "AWS::KMS::Alias",
Expand All @@ -107,8 +107,8 @@
]
}
},
"DeletionPolicy": "Delete",
"UpdateReplacePolicy": "Delete"
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"pipelinePipeline22F2A91DRole58B7B05E": {
"Type": "AWS::IAM::Role",
Expand Down Expand Up @@ -466,4 +466,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,15 @@
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopicACD2D4A4": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ-ecs/EcsCluster/DefaultAutoScalingGroup"
}
]
}
},
"EcsClusterDefaultAutoScalingGroupLifecycleHookDrainHookFFA63029": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,15 @@
}
},
"FargateClusterDefaultAutoScalingGroupLifecycleHookDrainHookTopic49146C10": {
"Type": "AWS::SNS::Topic"
"Type": "AWS::SNS::Topic",
"Properties": {
"Tags": [
{
"Key": "Name",
"Value": "aws-ecs-integ2/FargateCluster/DefaultAutoScalingGroup"
}
]
}
},
"FargateClusterDefaultAutoScalingGroupLifecycleHookDrainHook2AE13680": {
"Type": "AWS::AutoScaling::LifecycleHook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,10 @@
]
},
"\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"TheContainer\",\"Environment\":[{\"Name\":\"SOME_KEY\",\"Value.$\":\"$.SomeKey\"}]}]},\"LaunchType\":\"FARGATE\"},\"Type\":\"Task\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::ecs:runTask.sync\"}}}"
{
"Ref": "AWS::Partition"
},
":states:::ecs:runTask.sync\"}}}"
]
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@
"Ref": "CallbackHandler4434C38D"
},
"\",\"Payload\":{\"token.$\":\"$$.Task.Token\"}},\"Type\":\"Task\",\"Resource\":\"arn:",
{
"Ref": "AWS::Partition"
},
":states:::lambda:invoke.waitForTaskToken\",\"ResultPath\":\"$.status\"},\"Job Complete?\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.status\",\"StringEquals\":\"FAILED\",\"Next\":\"Job Failed\"},{\"Variable\":\"$.status\",\"StringEquals\":\"SUCCEEDED\",\"Next\":\"Final step\"}]},\"Job Failed\":{\"Type\":\"Fail\",\"Error\":\"DescribeJob returned FAILED\",\"Cause\":\"AWS Batch Job Failed\"},\"Final step\":{\"Type\":\"Pass\",\"End\":true}},\"TimeoutSeconds\":30}"
{
"Ref": "AWS::Partition"
},
":states:::lambda:invoke.waitForTaskToken\",\"ResultPath\":\"$.status\"},\"Job Complete?\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.status\",\"StringEquals\":\"FAILED\",\"Next\":\"Job Failed\"},{\"Variable\":\"$.status\",\"StringEquals\":\"SUCCEEDED\",\"Next\":\"Final step\"}]},\"Job Failed\":{\"Type\":\"Fail\",\"Error\":\"DescribeJob returned FAILED\",\"Cause\":\"AWS Batch Job Failed\"},\"Final step\":{\"Type\":\"Pass\",\"End\":true}},\"TimeoutSeconds\":30}"
]
]
},
Expand Down
Loading

0 comments on commit ed904cb

Please sign in to comment.