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

Call TerraformConversions in Terraform Plugin Framework External Client #430

Open
turkenf opened this issue Aug 29, 2024 · 0 comments
Open
Labels
enhancement New feature or request v2
Milestone

Comments

@turkenf
Copy link
Collaborator

turkenf commented Aug 29, 2024

What problem are you facing?

When we work on adding s3 directory bucket resource (framework resource), we noticed that we could not determine the fields that are singleton lists from the schema JSON. We added the following function to set the field's MaxItems to 1 manually.

func setMaxItemsConstraintsOnFrameworkResources() config.ResourceOption {
	return func(r *config.Resource) {
		switch r.Name {
		case "aws_s3_directory_bucket":
			r.TerraformResource.Schema["location"].MaxItems = 1
		default:
			return
		}
	}
}

Then we encountered the following issue:

Screenshot 2024-08-29 at 18 32 02

This issue is caused by the fact that we cannot call TerraformConversions in the Terraform Plugin Framework External Client.

PR discussion

How could Upjet help solve your problem?

Implement the feature that caused the above issue.

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

No branches or pull requests

2 participants