It should not show error if there is already a guardrail version available.
Actual Behavior
aws_bedrock_guardrail_version resource shows inconsistent result after apply.
It creates a guardrail version in the first run, in the subsequent runs it errors out with the below error message:
Error: Provider produced inconsistent result after apply
<span>
When applying changes to aws_bedrockagent_agent, provider "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an unexpected new value: .guardrail_configuration: was
cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"guardrail_identifier":cty.StringVal("<guardrail_id>"),
"guardrail_version":cty.StringVal("3")})}), but now null.
Relevant Error/Panic Output Snippet
Error: Provider produced inconsistent result after apply
<span>
When applying changes to aws_bedrockagent_agent, provider "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an unexpected new value: .guardrail_configuration: was
cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"guardrail_identifier":cty.StringVal("<guardrail_id>"),
"guardrail_version":cty.StringVal("3")})}), but now null.
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.6.0
AWS Provider Version
5.74
Affected Resource(s)
aws_bedrock_guardrail_version
Expected Behavior
It should not show error if there is already a guardrail version available.
Actual Behavior
aws_bedrock_guardrail_version resource shows inconsistent result after apply. It creates a guardrail version in the first run, in the subsequent runs it errors out with the below error message:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None