Skip to content

Commit

Permalink
docs: Correct comments in {{cookiecutter.provider}}/provider/resource…
Browse files Browse the repository at this point in the history
…s.go (#30)
  • Loading branch information
tmeckel authored Oct 28, 2023
1 parent ce5b6ee commit 3ea6f2d
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions {{cookiecutter.provider}}/provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,23 +160,18 @@ func Provider() tfbridge.ProviderInfo {
},
PreConfigureCallback: preConfigureCallback,
Resources: map[string]*tfbridge.ResourceInfo{
// Map each resource in the Terraform provider to a Pulumi type. Two examples
// are below - the single line form is the common case. The multi-line form is
// needed only if you wish to override types or other default options.
// Map each resource in the Terraform provider to a Pulumi type.
//
// "aws_iam_role": {Tok: makeResource(mainMod(mainMod, "aws_iam_role")}
//
// "aws_acm_certificate": {
// Tok: Tok: makeResource(mainMod(mainMod, "aws_acm_certificate"),
// Fields: map[string]*tfbridge.SchemaInfo{
// "tags": {Type: tfbridge.MakeType("{{ cookiecutter.terraform_provider_name }}", "Tags")},
// },
// },
// "aws_iam_role": {
// Tok: makeResource(mainMod, "aws_iam_role"),
// },
},
DataSources: map[string]*tfbridge.DataSourceInfo{
// Map each resource in the Terraform provider to a Pulumi function. An example
// is below.
// "aws_ami": {Tok: makeDataSource(mainMod, "aws_ami")},
// Map each data source in the Terraform provider to a Pulumi function.
//
// "aws_ami": {
// Tok: makeDataSource(mainMod, "aws_ami"),
// },
},
JavaScript: &tfbridge.JavaScriptInfo{
PackageName: "{{ cookiecutter.provider_javascript_package }}",
Expand Down

0 comments on commit 3ea6f2d

Please sign in to comment.