brainy-magician-83981
02/08/2019, 9:44 PMpulumi destroy
... it listed a resource that was not created by my pulumi stack to be deleted. This resource was a prior existing resource that was added into the stack via an aws resource id. Will pulumi destroy this resource? If so, how do you tell pulumi to never destroy a resource not created by it?
I got this resource via a get
call. const not_my_tbl = aws.dynamodb.Table.get('not_my_table', 'not_my_table')
*In general, is there a way to mark a resource to never be destroyed?white-balloon-205
.get
.
Re: marking as not delete, there is an option in the ResourceOptions for any resource that can say protected: true
which will prevent any attempt to delete the resource until that property is first removed in a separate update.brave-salesmen-42327
02/16/2019, 4:02 PM