[Bug]: Unable to specify only prefix_list_ids under network_access_control in aws_grafana_workspace #30062
Labels
bug
Addresses a defect in current functionality.
good first issue
Call to action for new contributors looking for a place to start. Smaller or straightforward issues.
service/grafana
Issues and PRs that pertain to the grafana service.
Terraform Core Version
1.3.7
AWS Provider Version
4.58.0
Affected Resource(s)
Expected Behavior
When using the configuration
To add access control to an existing
aws_grafana_workspace
I expect that the prefix lists get added to the workspace configuration.Actual Behavior
The plan succeeds, but apply fails, with the following error:
Error: updating Grafana Workspace (g-deadbeef): InvalidParameter: 1 validation error(s) found. - missing required field, UpdateWorkspaceInput.NetworkAccessControl.VpceIds.
with module.local_grafana.aws_grafana_workspace.grafana
on .terraform/modules/local_grafana/main.tf line 1, in resource "aws_grafana_workspace" "grafana":
resource "aws_grafana_workspace" "grafana" {
When using the AWS portal to make the same configuration change, it works correctly. Cloudtrail logs confirm that the vpce_ids is provided to the AWS API as an empty set and the API accepts the configuration.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Create a grafana workspace. Create a prefix list with public IP range(s) (e.g.
33.22.11.0/24
).Reconfigure the grafana workspace with the above
network_access_control
block, specifying the prefix_list_ids and an empty set of vpce_ids (you can provide[]
ortoset([])
and the same behaviour occurs)Plan will succeed, but apply will fail.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: