https://pulumi.com logo
#typescript
Title
# typescript
a

abundant-king-20145

10/10/2022, 4:42 PM
Hello! I wonder. Is there a way to add local policy packs to an automation api project? Normally, with the cli this is done by using
--policy-pack
flag. But, is there a way to do the same on an automation-api project. I cant find the option.
b

billowy-army-68599

10/10/2022, 4:54 PM
it hasn’t been plumbed through yet, unfortunately
a

abundant-king-20145

10/10/2022, 9:55 PM
Do you know if there is a gitlab issue about adding that feature yet, so I can track on?
b

broad-gold-44713

10/10/2022, 10:46 PM
Since the automation api is just a wrapper around the cli, I've generally found it easier to run the cli directly with JSON output.
b

billowy-army-68599

10/11/2022, 12:47 AM
@abundant-king-20145 amazingly, I actually already wrote to the automation API and completely forgot I did it 😅 https://github.com/pulumi/pulumi/pull/9872/files https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/automation/#PreviewOptions-policyPacks