AzBuilder / terraform-spring-boot

Spring Boot Starter for Terraform
MIT License
2 stars 6 forks source link

Initial Tofu Support #43

Closed alfespa17 closed 10 months ago

alfespa17 commented 10 months ago

This PR will add support to use opentofu like the following:

    public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {

        TerraformProcessData terraformProcessData = TerraformProcessData.builder()
                .terraformVersion("1.6.0")
                .workingDirectory(new File("/somte/terraform/path"))
                .tofu(true)
                .build();

        TerraformClient terraformClient = TerraformClient
                .builder()
                .jsonOutput(false)
                .showColor(true)
                .build();

        terraformClient.init(terraformProcessData, System.out::println, System.err::println).get();
        terraformClient.plan(terraformProcessData, System.out::println, System.err::println).get();

    }
sonarcloud[bot] commented 10 months ago

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

alfespa17 commented 10 months ago

Related to https://github.com/AzBuilder/terrakube/issues/674