Plan and Apply should succedd with all required variables.
Actual Behavior
snippet passes plan however apply fails. As the cloudwatchconfig.rolearn is a required parameter on the logging configuration however the provider currently states cloudwatch_config.role_arn is optional
Relevant Error/Panic Output Snippet
with aws_bedrock_model_invocation_logging_configuration.logging_config
on bedrock.tf line 1, in resource "aws_bedrock_model_invocation_logging_configuration" "logging_config":
resource "aws_bedrock_model_invocation_logging_configuration" "logging_config" {
operation error Bedrock: PutModelInvocationLoggingConfiguration, 1 validation error(s) found.
- missing required field, PutModelInvocationLoggingConfigurationInput.LoggingConfig.CloudWatchConfig.RoleArn.
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.4
AWS Provider Version
5.7.0
Affected Resource(s)
aws_bedrock_model_invocation_logging_configuration.logging_config
Expected Behavior
Plan and Apply should succedd with all required variables.
Actual Behavior
snippet passes plan however apply fails. As the cloudwatchconfig.rolearn is a required parameter on the logging configuration however the provider currently states cloudwatch_config.role_arn is optional
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform init terraform plan terraform apply -> FAILS
Debug Output
No response
Panic Output
No response
Important Factoids
role_arn is not option however terraform provider thinks it is.
References
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CloudWatchConfig.html states role arn for all cloudwatch configuration is a required parameter
Would you like to implement a fix?
No