diff --git a/packages/aws-cdk-lib/cloudformation-include/test/test-templates/tags-with-invalid-intrinsics.json b/packages/aws-cdk-lib/cloudformation-include/test/test-templates/tags-with-invalid-intrinsics.json new file mode 100644 index 0000000000000..81c8368f88521 --- /dev/null +++ b/packages/aws-cdk-lib/cloudformation-include/test/test-templates/tags-with-invalid-intrinsics.json @@ -0,0 +1,46 @@ +{ + "Parameters": { + "Param": { + "Type": "CommaDelimitedList", + "Default": "key,value" + } + }, + "Conditions": { + "ShouldIncludeTag": { + "Fn::Equals": [2, 2] + } + }, + "Resources": { + "Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": "cdk-integ-cfn-include-bucket2", + "Tags": [ + { + "Key": "Key1", + "Value": "Value1" + }, + { + "Fn::If": [ + "NonExistentCondition", + { + "Key": { + "Fn::Select": [ + 0, + { + "Ref": "Param" + } + ] + }, + "Value": "TagValue" + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ] + } + } + } +} \ No newline at end of file