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

Grant interface #1110

Open
moltar opened this issue Feb 2, 2024 · 0 comments
Open

Grant interface #1110

moltar opened this issue Feb 2, 2024 · 0 comments

Comments

@moltar
Copy link
Contributor

moltar commented Feb 2, 2024

Following #1109, a grant interface may be more idiomatic than exposing the policy itself, which is kind of an implementation detail.

const backend = new TerraformStateBackend(stack, 'Default')
const role = new Role(stack, 'Foo')

backend.grantRead(role) // for plan only
backend.grantReadWrite(role) // for apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant