Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support object for Policy policy property #10

Open
nesl247 opened this issue Nov 20, 2019 · 2 comments
Open

Support object for Policy policy property #10

nesl247 opened this issue Nov 20, 2019 · 2 comments
Labels
awaiting-upstream Awaiting upstream dependency kind/enhancement Improvements or new features

Comments

@nesl247
Copy link

nesl247 commented Nov 20, 2019

When creating a Policy the policy property should support an object instead of just a string.

@stack72 stack72 self-assigned this Nov 20, 2019
@shaidar
Copy link

shaidar commented Feb 11, 2021

Just checking in on this to see if there are any updates on it.

@dmattia
Copy link

dmattia commented Oct 6, 2021

How I'm doing this:

// Construct the policy document
const policyDoc = pulumi.output(
  vault.getPolicyDocument(
    {
      rules: permissions.permissions,
    },
    opts,
  ),
);

// Create the policy in Vault
const policy = new vault.Policy(
  `${name}-policy`,
  {
    name: pulumi.interpolate`${permissions.roleName}-policy`,
    policy: policyDoc.apply(({ hcl }) => hcl),
  },
   opts,
);

@AaronFriel AaronFriel added awaiting-upstream Awaiting upstream dependency kind/enhancement Improvements or new features labels Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream Awaiting upstream dependency kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

5 participants