Open jkodroff opened 1 year ago
As part of some discussions recently we sketched out what we think these APIs could look like. Leaving notes here in case they help as input to implementing this:
const policyGroup = new pulumiservice.PolicyGroup("production", {
});
for (const stack in productionStacks) {
new pulumiservice.PolicyGroupStack(stack, {
policyGroup: policyGroup.name,
stack: stack,
});
}
for (const policy of ["soc2" , "pci-dss" ]) {
const policyPack = new pulumiservice.PolicyPack({
name: policy,
source: new pulumi.asset.FileArchive("../policy/"+policy),
});
new pulumiservice.PolicyGroupPolicyPack(policy, {
policyGroup: policyGroup.name,
policyPack: policyPack.name,
});
}
A few notes:
policy publish
automatically from that archive (which could be a folder on disk, or an in-memory constructed policy pack, programmatically configured based inputs in the users' program!). This allows automating the lifecycle of policies completely within the provider.
Hello!
Issue details
It's not possible today to manage Policy Groups via the Pulumi Cloud provider (nor via the REST API, which I would assume is a pre-req for having it present in the provider).
I would like to be able to do all of the following with the provider:
Out of scope, but this is what I would be doing next:
Affected area/feature