salesforce / terraform-provider-anypoint

The official Terraform Provider for Mulesoft Anypoint Platform
https://registry.terraform.io/providers/mulesoft-anypoint/anypoint/latest/docs
MIT License
21 stars 17 forks source link

Team role error when no team specified #71

Closed munozmi closed 1 year ago

munozmi commented 1 year ago

When the teams.csv file is empty or no teams are being added the following error is always shown

╷
│ Error: Insufficient roles blocks
│ 
│   on resources.tf line 85, in resource "anypoint_team_roles" "lvl1_teams_roles":
│   85: resource "anypoint_team_roles" "lvl1_teams_roles" {
│ 
│ At least 1 "roles" blocks are required.

To reproduce leave teams_lvl1.csv empty and run terraform plan.

soufi commented 1 year ago

Hi @munozmi,

Those issues are related to the templates not the provider itself... please open an issue on the templates repository instead. Thank you