Skip to content

Commit

Permalink
pulumi#253 Update pulumi-terraform-bridge to enable Java & YAML support
Browse files Browse the repository at this point in the history
  • Loading branch information
Asamsig committed Jul 8, 2022
1 parent a60e698 commit aa399b1
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 253 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ tf2pulumi_coverage_report:: generate_tf2pulumi_coverage_input

install_plugins::
[ -x $(shell which pulumi) ] || curl -fsSL https://get.pulumi.com | sh
pulumi plugin install resource aws 2.0.0
pulumi plugin install resource azure 2.0.0
pulumi plugin install resource gcp 2.0.0
pulumi plugin install resource aws 5.0.0
pulumi plugin install resource azure 4.42.0
pulumi plugin install resource gcp 6.17.0
pulumi plugin install resource terraform-template 0.16.0
pulumi plugin install resource random 2.0.0
pulumi plugin install resource random 4.4.2

dev:: build lint test_acceptance
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ $ pulumi new python -f

// For a C# project
$ pulumi new csharp -f

// For a Java project
$ pulumi new java -f

// For a YAML project
$ pulumi new yaml -f
```

Then run `tf2pulumi` which will write a file in the directory that
Expand All @@ -69,6 +75,12 @@ $ tf2pulumi --target-language python

// For a C# project
$ tf2pulumi --target-language csharp

// For a Java project
$ tf2pulumi --target-language java

// For a YAML project
$ tf2pulumi --target-language yaml
```

If `tf2pulumi` complains about missing Terraform resource plugins, install those plugins as per the
Expand Down
15 changes: 6 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ module github.com/pulumi/tf2pulumi
go 1.16

require (
github.com/hashicorp/hcl/v2 v2.3.0
github.com/hashicorp/hcl/v2 v2.11.1
github.com/olekukonko/tablewriter v0.0.5
github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.2.1
github.com/pulumi/pulumi/pkg/v2 v2.19.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.4.0
github.com/pulumi/pulumi/sdk/v2 v2.19.0 // indirect
github.com/pulumi/pulumi/sdk/v3 v3.4.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.25.2
github.com/pulumi/pulumi/pkg/v3 v3.34.1
github.com/pulumi/pulumi/sdk/v3 v3.34.1
github.com/spf13/afero v1.6.0
github.com/spf13/cobra v1.0.0
github.com/stretchr/testify v1.6.1
github.com/spf13/cobra v1.4.0
github.com/stretchr/testify v1.7.1
modernc.org/sqlite v1.10.7
)

Expand Down

0 comments on commit aa399b1

Please sign in to comment.