```opts=ResourceOptions( ...
# general
t
Copy code
opts=ResourceOptions(
                                    import_=AZURE_EXISTING_CONTAINER_REGISTRY_ID,
                                    retain_on_delete=True,
                                    protect=True
)
l
Since import is a one-time opt, and you have to remove it once the import is finished, why bother getting it from config? Just put it straight into the opt.
t
I am just trying to protect the ids in version control
l
You'll just need to commit then again with the import_ removed...
t
so what if other team, mate pull the code?
it wont be consistent?
oh I see, so once the resource is in state I can remove the opts?
l
Yes, the import is a one-time action. You must remove it after the import has happened.
🙌 1
👍 1