Adding tags to CfnCrawler
results in invalid tag input
#30992
Unanswered
juanchaves
asked this question in
Q&A
Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think I am missing something as everything I try to tag this CfnCrawler gives back:
As far as I can tell, in the CDK they're using
TagManager
for this property and the type that is listed in the docs is Array of Tag.Notes:
.forEach
is that this is a custom Construct that I am writing for other users and they might supply an array of multiple tagsTagProps
interface below comes from a common library that we use. The class that uses this interface usesAspects
to add some mandatory tags.scenario 1:
Result:
Invalid tag input expected map of {key: value} have [{"key":"testKey","value":"testValue"}]
scenario 2:
Also tried using the
Tag
class without thecdk.TagProp
{ includeResourceTypes: ['CfnCrawler']}
Result:
Invalid tag input expected map of {key: value} have [{"key":"testKey","value":"testValue"}]
scenario 3:
Also tried using the
Tags
class without thecdk.TagProp
{ includeResourceTypes: ['CfnCrawler']}
Result:
Invalid tag input expected map of {key: value} have [{"key":"testKey","value":"testValue"}]
scenario 4:
Result:
Invalid tag input expected map of {key: value} have [{"key":"testKey","value":"testValue"}]
scenario 5:
Result:
Invalid tag input expected map of {key: value} have [{"key":"testKey","value":"testValue"}]
I would appreciate any help in this 😄
Beta Was this translation helpful? Give feedback.
All reactions