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

AzureGov export not producing main.tf file #488

Closed
edchumpitaz opened this issue Dec 12, 2023 · 3 comments
Closed

AzureGov export not producing main.tf file #488

edchumpitaz opened this issue Dec 12, 2023 · 3 comments
Labels
question Further information is requested

Comments

@edchumpitaz
Copy link

I'm new to working with aztfexport. After a few attempts, I was able to get the correct flags to begin the export. Once it completes, I see the aztfexportResourceMapping.json, import.tf, provider.tf, and terraform.tf files but not the main.tf file. I tried with and without the --hcl-only flag with no luck. Any insight would be appreciated. Are there additional steps I must take to get the main.tf file? The goal is to get the main.tf file and use it to deploy/redeploy this exported RG & Resources in a test/dev sub.

Command I'm using is aztfexport rg --hcl-only --env "usgovernment" rgname

@magodo
Copy link
Collaborator

magodo commented Dec 13, 2023

@edchumpitaz Could you please share the log so that I can further look into, as the command seems correct to me. Also it worth mentioning that "reproduce" the provisioning is a non-goal of this tool.

@magodo magodo added the question Further information is requested label Dec 13, 2023
@stonehj
Copy link

stonehj commented Jan 17, 2024

I'm having the same issue, did you manage to get it working?

@magodo
Copy link
Collaborator

magodo commented Aug 9, 2024

Fixed by #546.

@magodo magodo closed this as completed Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants