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

Added command to export an environment as an HCL file #47 #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PIYUSH-MISHRA-00
Copy link

/claim #47

The terraform export command has been successfully implemented. You can now use it to export your Permit environment configuration to Terraform HCL format. The command supports both printing to console and saving to a file.

Usage:

permit env export terraform - Prints the HCL to console
permit env export terraform --file output.tf - Saves the HCL to output.tf
permit env export terraform --key YOUR_API_KEY - Uses a specific API key
The command exports all environment content including resources, roles, user sets, resource sets, and condition sets in the format compatible with the Permit Terraform provider.

@PIYUSH-MISHRA-00
Copy link
Author

/claim #16
The command has been executed multiple times, but it continues to display the PERMIT CLI logo without producing the expected graph output. The debugging logs have been added to inspect the API responses, but the command is not completing as intended. Further investigation into the API responses and the command logic may be necessary to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant