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

Initial Tofu Support #43

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Initial Tofu Support #43

merged 1 commit into from
Jan 16, 2024

Conversation

alfespa17
Copy link
Member

@alfespa17 alfespa17 commented Jan 16, 2024

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();

    }

Copy link

sonarcloud bot commented Jan 16, 2024

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 alfespa17 merged commit 2922c00 into master Jan 16, 2024
3 checks passed
@alfespa17 alfespa17 deleted the tofu-support branch January 16, 2024 21:30
@alfespa17
Copy link
Member Author

Related to AzBuilder/terrakube#674

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

Successfully merging this pull request may close these issues.

None yet

1 participant