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

Support for Terraform #1193

Open
BernieWhite opened this issue Jan 11, 2022 · 6 comments
Open

Support for Terraform #1193

BernieWhite opened this issue Jan 11, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request hot A frequently raised issue

Comments

@BernieWhite
Copy link
Collaborator

BernieWhite commented Jan 11, 2022

This is tracking for adding support for Terraform HCL to PSRule originally discussed here microsoft/PSRule#907 by @jbla9028.

Is your feature request related to a problem? Please describe.
It appears that psrule can review a ARM or bicep template from the documentation. It seems like the only open to review terraform is to review the resources after the terraform code has applied the infrastructure. Can we get native terraform support?

Passing a target folder, along with variables, can psrule review a user's terraform code for compliance?

Describe the solution you'd like

Describe alternatives you've considered
There are other solutions that will do this but psRule's syntax seems very easy to use, it would be great to leverage it with terraform.

Additional context


Continue reading the FAQ for details on in-flight support for Terraform.


If this issue is important to you please upvote the issue.
We plan to investigate this issue to determine if this is something that should be integrated into PSRule for Azure.


Updated: 2023-08-26

Some questions to add to the research effort:

  • What do your current CI pipelines look like now?
  • Do you generate a plan in your terraform pipelines for deployment?
  • Do you use the azurerm or azapi providers?
@BernieWhite BernieWhite added the enhancement New feature or request label Jan 11, 2022
@BernieWhite BernieWhite pinned this issue Feb 8, 2022
@vishalgoyal16444
Copy link

Having PSRules support for terraform scripts hosted on a repository will be extremely useful to check for rules validation even before we create actual resources on Azure.

@BernieWhite BernieWhite self-assigned this Mar 9, 2022
@BernieWhite BernieWhite added the hot A frequently raised issue label Mar 28, 2022
@vannela
Copy link

vannela commented Apr 22, 2022

Terraform being used widely for Azure as well, support for validating is very useful.

@itpropro
Copy link

I think we should focus on the Azure tooling first. There are still multiple problems with bicep and ARM syntax.
First party tooling should be the focus and priority by now and maybe after Bicep 1.0, we can focus on third-party tools like Ansible, Pulumi or Terraform.

@trstroem
Copy link

Terraform really useful since often used in SAP on Azure implementations...

@MohnJadden
Copy link

Being able to test against Azure Policy would help eliminate a lot of Terraform headaches and errors. I bypass ARM entirely by using Terraform and avoid ARM wherever possible - TF is simply easier to use. We use azurerm exclusively.

@itpropro
Copy link

itpropro commented Nov 6, 2023

Being able to test against Azure Policy would help eliminate a lot of Terraform headaches and errors. I bypass ARM entirely by using Terraform and avoid ARM wherever possible - TF is simply easier to use. We use azurerm exclusively.

You are still using ARM REST APIs in the background, if you are using Terraform, just no ARM templates. If you don't like ARM template syntax, you can always use Bicep for simpler usage and much clearer syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hot A frequently raised issue
Projects
None yet
Development

No branches or pull requests

6 participants