Can someone help me out here? Unless I’m missing s...
# aws
n
Can someone help me out here? Unless I’m missing something, this should be an accurate name for an IoT TopicRule right?
some_topic_name
According to this regex: https://regex101.com/r/oEIngn/3 but I’m getting the following error:
Copy code
error: aws:iot/topicRule:TopicRule resource 'some_topic_name' has a problem: Name must match the pattern ^[a-zA-Z0-9_]+$
nvm, think i figured it out…
Copy code
new aws.iot.TopicRule('this_is_not_the_name', {...})
isn’t the same as
Copy code
new aws.iot.TopicRule('this_is_not_the_name', {
    name: 'this_is_the_name',
    ...
})
which has a required
name
in
TopicRule
that i was missing…
h
Yeh, pulumi will add a unique suffix to names unless you override (not sure if thats true in all cases). But that suffix is alwasys
-xxxxx
where
xxxxx
is some hex numbers & letters. I think the hyphen (
-
) used was the problem.
n
right, i just passed the
-
through a regex to replace globally to
_