The idea behind this issue is to provide Permit users an efficient way to start working with TF after configuring the Permit configuration from the UI/API.
The content is to create a new command, permit env export terraform, which uses the Permit SDK to export all the environment content (resources, roles, user sets, resource sets, condition sets) in the Permit Terraform provider format.
The Permit terraform provider - https://github.com/permitio/terraform-provider-permit-io
Command Options
- --key - (optional) to allow running the command without login flow. In case no key is provided, the command would use the AuthProvider to get the API key
- --file - (optional) a file path for the exported HCL
Command result
Print/save to file an HCL script with all the environment content on it
Acceptance criteria
- Minimum of 90% UT code coverage
- Loom video of exporting all the types of entities that are supported by the TF provider. Using both login and --key
The idea behind this issue is to provide Permit users an efficient way to start working with TF after configuring the Permit configuration from the UI/API.
The content is to create a new command,
permit env export terraform,which uses the Permit SDK to export all the environment content (resources, roles, user sets, resource sets, condition sets) in the Permit Terraform provider format.The Permit terraform provider - https://github.com/permitio/terraform-provider-permit-io
Command Options
Command result
Print/save to file an HCL script with all the environment content on it
Acceptance criteria