default IAM role is removed from the namespace. This operation is fully supported by UpdateNamespace API.
Actual Behavior
The following error appears when default_iam_role_arn is removed from resource config:
aws_redshiftserverless_namespace.test: Modifying... [id=test]
╷
│ Error: updating Redshift Serverless Namespace (test): operation error Redshift Serverless: UpdateNamespace, https response error StatusCode: 400, RequestID: cf5a3887-0d24-40e7-ac0d-aad4d5f95e0e, ValidationException: To change the default IAM role, you must specify the entire list of IAM roles.
│
│ with aws_redshiftserverless_namespace.test,
│ on main.tf line 52, in resource "aws_redshiftserverless_namespace" "test":
│ 52: resource "aws_redshiftserverless_namespace" "test" {
│
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.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.5
AWS Provider Version
5.66.0
Affected Resource(s)
Expected Behavior
default IAM role is removed from the namespace. This operation is fully supported by UpdateNamespace API.
Actual Behavior
The following error appears when
default_iam_role_arn
is removed from resource config:Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
default_iam_role_arn
from the configuration, or set it to "" or null and apply - observe the errorDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes