Replies: 1 comment
-
Almost the same way. The template.hasResourceProperties("AWS::S3::Bucket", {
Tags: [
{
Key: "foo",
Value: "bar",
},
],
}); See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html You may use also |
Beta Was this translation helpful? Give feedback.
-
How do you assert tags?
Error: Template has 1 resources with type AWS::S3::Bucket, but none match as expected.
Beta Was this translation helpful? Give feedback.
All reactions