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

Add command to export an environment as an HCL file #47

Open
gemanor opened this issue Dec 13, 2024 · 13 comments
Open

Add command to export an environment as an HCL file #47

gemanor opened this issue Dec 13, 2024 · 13 comments
Assignees

Comments

@gemanor
Copy link
Collaborator

gemanor commented Dec 13, 2024

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
@gemanor
Copy link
Collaborator Author

gemanor commented Dec 13, 2024

/bounty 300

Copy link

algora-pbc bot commented Dec 13, 2024

💎 $300 bounty • Permit.io

Steps to solve:

  1. Start working: Comment /attempt #47 with your implementation plan
  2. Submit work: Create a pull request including /claim #47 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to permitio/permit-cli!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @daveads Dec 13, 2024, 11:22:48 AM #54
🟢 @vikashsprem Dec 13, 2024, 11:23:43 AM WIP
🟢 @35C4n0r Dec 13, 2024, 11:24:11 AM WIP
🟢 @azar-writes-code Dec 16, 2024, 6:09:41 PM WIP
🟢 @SAIKIRANSURAPALLI Dec 31, 2024, 3:07:50 PM WIP
🟢 @PIYUSH-MISHRA-00 Jan 2, 2025, 10:38:08 AM #57

@daveads
Copy link

daveads commented Dec 13, 2024

/attempt #47

Algora profile Completed bounties Tech Active attempts Options
@daveads    2 Permitio bounties
+ 7 bounties from 4 projects
Python, Shell,
Go & more
﹟12, ﹟716
Cancel attempt

@vikashsprem
Copy link

vikashsprem commented Dec 13, 2024

/attempt #47

Algora profile Completed bounties Tech Active attempts Options
@vikashsprem 2 bounties from 2 projects
TypeScript, JavaScript,
CSS & more
﹟716
Cancel attempt

@35C4n0r
Copy link
Contributor

35C4n0r commented Dec 13, 2024

/attempt #47

Algora profile Completed bounties Tech Active attempts Options
@35C4n0r    1 Permitio bounty
+ 30 bounties from 5 projects
Python, TypeScript,
HTML & more
Cancel attempt

@gemanor
Copy link
Collaborator Author

gemanor commented Dec 13, 2024

Assigning @daveads as first come first serve

@azar-writes-code
Copy link

azar-writes-code commented Dec 16, 2024

/attempt #47

Copy link

algora-pbc bot commented Dec 17, 2024

💡 @daveads submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@SAIKIRANSURAPALLI
Copy link

/attempt #47

@daveads
Copy link

daveads commented Dec 31, 2024

/attempt #47

This is assigned only...

@PIYUSH-MISHRA-00
Copy link

PIYUSH-MISHRA-00 commented Jan 2, 2025

/attempt #47

Copy link

algora-pbc bot commented Jan 2, 2025

💡 @PIYUSH-MISHRA-00 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@gemanor
Copy link
Collaborator Author

gemanor commented Jan 2, 2025

Hey @PIYUSH-MISHRA-00 , @daveads is already assigned to it and working on a PR. We will have to refuse the attempt for now.

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

No branches or pull requests

7 participants