Does `import` create the resource if it doesn’t ex...
# general
c
Does
import
create the resource if it doesn’t exist? I have lambdas which have created their own log groups, they are untagged. I would love if I could somehow just get pulumi to take over if it exists then apply the tags, or create if it doesn’t exist
g
No. Import only works for pre-existing resources.
c
Any ideas/suggestion on how to solve the above?
g
Im not familiar with log groups, but you can import multiple resources at once with the
--file
argument if that helps.
c
Basically, AWS will automatically create them when the service writes logs. So I may, or may not have existing log groups which i want to take over