-
Notifications
You must be signed in to change notification settings - Fork 455
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
Generate wrong comunity provider configuration #547
Comments
@dzirg44 which version of Terraform do you have installed? |
upgraded to the generated file (index.ts) looks like export * from './elasticsearch-provider';
blic constructor(scope: Construct, id: string, config: IndexConfig) {
super(scope, id, {
terraformResourceType: 'elasticsearch_index',
terraformGeneratorMetadata: {
providerName: 'elasticsearch'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle
});
this._aliases = config.aliases;
this._autoExpandReplicas = config.autoExpandReplicas;
this._codec = config.codec;
this._forceDestroy = config.forceDestroy;
this._loadFixedBitsetFiltersEagerly = config.loadFixedBitsetFiltersEagerly;
this._mappings = config.mappings;
this._name = config.name;
this._numberOfReplicas = config.numberOfReplicas;
this._numberOfShards = config.numberOfShards;
this._refreshInterval = config.refreshInterval;
this._rolloverAlias = config.rolloverAlias;
this._routingPartitionSize = config.routingPartitionSize;
}
// ==========
// ATTRIBUTES
// ========== where as you can see we don't have class name, even |
The ES index resource overwrites the In the case where a resource is called |
Ah, got it! Thank you! Anyway it would be nice if cdktf-cli could handle with it, or just show error. Something like 'this Provider contains index resource, and cannot be properly generated' |
Sorry, I should have been clearer. You're absolutely right, that's something we'll fix in cdktf. |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
package.json
cdktf
typescript
also tried stable version
Affected Resource(s)
Debug Output
a lot of errors, but just because of completely broken file.
Expected Behavior
generate working typescript configuration or show error\errors.
Actual Behavior
When I try to generate typescript provider from
i can see , that index file cannot be properly created.
Steps to Reproduce
add terraform provider as described and check
.gen/providers/elasticsearch/index.ts
file.The text was updated successfully, but these errors were encountered: