You want to use "my-stream" in place of stream.name? Can you not do that already?
log_group_name=f'aws/kinesisfirehose/my-stream
a
average-school-38756
08/30/2021, 12:11 AM
no, i want to use "my-stream-<rand-hash>"
l
little-cartoon-10569
08/30/2021, 1:08 AM
The name isn't known at creation time. To achieve this, you would have to set the name yourself. There is a configuration arg "name" that you can pass into the stream constructor.
g
great-sunset-355
08/30/2021, 8:03 AM
Note there is a difference between
resource_name
and the physical
name
of the resource that gets deployed.
By default, Pulumi is trying to help you by generating a physical name from the
resource name
if possible.
And also uses
resource_name
as a reference inside the
state
file.
As tenwit suggested you can override generated name with passing in your own name via
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.