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

provider-generator: Add support for provider functions #3686

Open
1 task done
so0k opened this issue Aug 2, 2024 · 0 comments
Open
1 task done

provider-generator: Add support for provider functions #3686

so0k opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement New feature or request new Un-triaged issue

Comments

@so0k
Copy link

so0k commented Aug 2, 2024

Description

Terraform Provider functions were announced with Terraform 1.8 on April 10, 2024 and I don't see any information about supporting provider functions in terraform-for-cdk.

For example the terraform-provider-aws arn_parse function isn't available (searched using grep in the pre-generated Typescript code).

I believe this affects several components, but it starts in provider-schema component.

Object.values(schema.provider_schemas || {}).forEach((provider) => {
const entities = [
provider.provider,
...Object.values(provider.resource_schemas || {}),
...Object.values(provider.data_source_schemas || {}),
];

and

export interface Provider {
provider: Schema;
resource_schemas: { [type: string]: Schema };
data_source_schemas: { [type: string]: Schema };
}

Then additional support will need to be lib component to actually use the Provider functions in target languages

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@so0k so0k added enhancement New feature or request new Un-triaged issue labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new Un-triaged issue
Projects
None yet
Development

No branches or pull requests

1 participant