https://pulumi.com logo
Title
c

curved-pharmacist-41509

03/18/2021, 5:28 AM
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

gentle-diamond-70147

03/18/2021, 5:35 AM
No. Import only works for pre-existing resources.
c

curved-pharmacist-41509

03/18/2021, 5:36 AM
Any ideas/suggestion on how to solve the above?
g

gentle-diamond-70147

03/18/2021, 5:38 AM
Im not familiar with log groups, but you can import multiple resources at once with the
--file
argument if that helps.
c

curved-pharmacist-41509

03/18/2021, 5:39 AM
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