great-sunset-355
12/12/2024, 11:59 AMPulumi behaviour is bizarre!
KMS_KEY_A with access from A,B
KMS_KEY_B with access from B
scenario 1
with A `pulumi stack init --secrets-provider KMS_KEY_A` - works
with B `pulumi config --show-secrets` - works
with B `pulumi config set --secret test "asdf"` - uses key in A to en/decrypt stuff
scenario 2
with B - `pulumi stack init --secrets-provider KMS_KEY_B` - works
but with B - `pulumi stack init --secrets-provider KMS_KEY_A` - does not … because nothing can point to the account ID of KMS_KEY_A
Okay, so after an hour banging my head why this doesn’t work … the problem is inconsistent documentation …
The command help doesn’t mention how to use ARN
https://www.pulumi.com/docs/iac/cli/commands/pulumi_stack_change-secrets-provider/
but this page does
https://www.pulumi.com/docs/iac/concepts/secrets/#aws-key-management-service-kmslimited-rainbow-51650
12/16/2024, 8:06 AM