https://pulumi.com logo
#getting-started
Title
# getting-started
i

icy-controller-6092

04/27/2022, 12:04 AM
if I create a
new aws.resource.Thing()
but don’t use it anywhere else, does it still get created? I’m wondering if I need to comment out the
new
call, or if I can just comment out the place where it’s used (lambda layer)
m

miniature-musician-31262

04/27/2022, 12:07 AM
The
new
call declares it, yes. When you run
pulumi up
, the new call will result in the resource being created. If you comment it and run
pulumi up
, that particular resource will be destroyed.
🙌 1
i

icy-controller-6092

04/27/2022, 12:07 AM
Thanks 🙂
👍 1
5 Views