https://pulumi.com logo
#aws
Title
n

nice-airport-15607

08/04/2020, 11:50 PM
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

hundreds-musician-51496

08/05/2020, 5:57 PM
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

nice-airport-15607

08/05/2020, 7:39 PM
right, i just passed the
-
through a regex to replace globally to
_