Hello, I'm trying to import two resources. - *ACR*...
# getting-started
f
Hello, I'm trying to import two resources. • ACR azure container registry ◦
pulumi import azure-native:resources:ResourceGroup rg-common-development /subscriptions/<subId>/resourcegroups/COMMON
◦ I tried this command, it worked and it also printed the TypeScript code, that I then pasted in my repo. It has no parents, so it's a quick one. • k8s namespace: ◦ on the doc, found here, I can't see any import section... so how should I approach this? In any case I can't delete the namespace and recreate with pulumi, so I have to import it and be able to manage it as a standard pulumi resource Thank you!
Sorry but this is quite blocking for me, any ideas?
m
You should be able to import a k8s namespace like any other resource, either via the CLI or in your code. See https://www.pulumi.com/docs/iac/adopting-pulumi/import/ for examples. It works the same way as it did for ACR. You can also "get" a namespace using
Namespace.get()
if you don't want to put it under Pulumi's control.
f
thank you! i ll look at the link you sent and give you a feedback! have a great day