This message was deleted.
# general
s
This message was deleted.
e
pulumi up
That will run the program and create any new resources it now declares
b
But it will also try to create resources on the cloud too, correct?
I just want to add resources into pulumi stack, without interfering with cloud infrastructure.
e
That's an odd scenario. You want to update state to declare resources that don't yet exist? That's not how stacks are meant to be used.
b
To be clear, I have some resources I have created using AWS management console, and wrote my code about these resources myself. And I want pulumi stack to be aware of these resources
b
e
Ohhh! You want
import
then ^^^|
b
Got another question: Let's say I have a Lambda function with tag
foo:bar
applied to it. However, I somehow forgot to add tags to my pulumi code. Will running
pulumi up
remove the tag
foo:bar
applied to the Lambda function?
e
Yes, pulumi will try to update the resource to match what the program asked for.
b
yes, pulumi will converge the resources to their declarative definitions, unless you're explicitly ignoring some properties with
ignoreChanges
b
I have some resources imported using
pulumi import
, but I'm afraid to run
pulumi up
because of unintented changes to my resources on AWS. Is
pulumi import
trustable..?
e
import
can not change anything in AWS it only does read-only operations
b
verify the changes with
preview
first?
e
up
will by default show a preview of what changes it intends to make allowing you to say No and not apply them
b
and yes,
import
only changes the Pulumi state, not the actual resources (as well as
refresh
)
b
After `pulumi import`ing resources I want, and right after when I run
pulumi preview
, there are tons of changes being displayed..
e
Well if your program doesn't match whats been imported then there will be a load of changes. Either accept them, or update your program and keep running preview till it looks like what you want.
b
Okay, thanks.. I always copy & paste
import
commands from docs page, but by mistake, I imported a resource with wrong name. How can I remove this resource on pulumi stack?
e