You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.
Terraform Version
1.10.4
AzureRM Provider Version
CDK 13.17.0
Affected Resource(s)/Data Source(s)
azurerm_*
Terraform Configuration Files
using Constructs;
using HashiCorp.Cdktf;
using HashiCorp.Cdktf.Providers.Azurerm.Provider;
using HashiCorp.Cdktf.Providers.Azurerm.ResourceGroup;
// ReSharper disable ObjectCreationAsStatement
namespace Mediaclip.Hub.DevOps.Terraform;
internal class MainStack : TerraformStack
{
public MainStack(Construct scope, string id)
:base(scope, id)
{
new AzurermProvider(this,
"AzureRm",
new AzurermProviderConfig
{
Alias ="redacted",
SubscriptionId ="redacted",
Features = new IAzurermProviderFeatures[]
{
new AzurermProviderFeatures()
}
}
);
new CloudBackend(this,
new CloudBackendConfig
{
Organization ="redacted",
Workspaces = new NamedCloudWorkspace("redacted"),
});
var buildServerRg = new ResourceGroup(this,
"redacted",
new ResourceGroupConfig
{
Name ="mc-redacted-rg",
Location ="eastus",
});
}
}
Debug Output/Panic Output
╷
│ Error: Invalid provider configuration
│
│ Provider "registry.terraform.io/hashicorp/azurerm" requires explicit
│ configuration. Add a provider block to the root module and configure the
│ provider's required arguments as described in the provider documentation. │ ╵ ╷ │ Error: Missing required argument │ │ with provider["registry.terraform.io/hashicorp/azurerm"], │ on <empty> line 0: │ (source code not available) │ │ The argument "features" is required, but no definition was found. ╵
Thank you for taking the time to open this issue. Since the issue seems to be in the azure example in the CDKTF, this is not part of the domain of this repository. As such, I am going to close this issue. I believe the terraform-cdk is the best place to get that answered. Additionally you could bring it up in a Discuss Forum.
Is there an existing issue for this?
Community Note
Terraform Version
1.10.4
AzureRM Provider Version
CDK 13.17.0
Affected Resource(s)/Data Source(s)
azurerm_*
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should works
Actual Behaviour
It crash
Steps to Reproduce
Important Factoids
No response
References
Also the example https://github.com/hashicorp/terraform-cdk/blob/main/examples/csharp/azure/Main.cs#L19 is not up-to-date , this line should be
Similar to hashicorp/terraform-cdk#3774 but since I don't know who is responsible for that I'm opening an issue on this repo too.
The text was updated successfully, but these errors were encountered: