I have enabled the "Container Analysis API" and "Artifact Registry" for the project. When I go to my GCP console --> API --> Enabled APIs & Services, then I can also see that API is enabled:
When I go to Artifact Registry in GCP console, it is still showing API disabled (see the pic below):
Although I have enabled the Container Analysis API through IaaC (Pulumi with TypeScript), but still I have to go to GCP Console --> Artifact Registry --> Settings and manually click on "Vulnerability scanning" Enable. After that the new images are being scanned. Is there anyway to do all these steps using IaaC ? I want to avoid manual clicks.