This PR aims to set the argument instruction to be mandatory. While reviewing the AWS API reference, it appears this argument is marked as optional. However, in real-world usage, omitting it leads to the following issue:
│ Error: creating Agent
│
│ with aws_bedrockagent_agent.demo,
│ on agent.tf line 46, in resource "aws_bedrockagent_agent" "demo":
│ 46: resource "aws_bedrockagent_agent" "demo" {
│
│ waiting for Bedrock Agent (3TTM4DCSXX) prepare: unexpected state 'FAILED', wanted target 'PREPARED'. last error: Exception: Agent Instruction cannot be null
Here's the source code related to this error message:
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.
For Submitters
Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.
Description
This PR aims to set the argument
instruction
to be mandatory. While reviewing the AWS API reference, it appears this argument is marked as optional. However, in real-world usage, omitting it leads to the following issue:Here's the source code related to this error message:
Relations
Closes #40255
References
(https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgent.html#API_agent_CreateAgent_RequestSyntax)
Output from Acceptance Testing