Skip to content

aws_bedrockagentcore_memory: Incorrect validation of eventExpiryDuration #44904

@naruse666

Description

@naruse666

Terraform and AWS Provider Version

aws provider version: `6.18.0`

terraform --version
Terraform v1.11.4
on darwin_arm64

Affected Resource(s) or Data Source(s)

  • aws_bedrockagentcore_memory

Expected Behavior

event_expiry_duration can be set between 1 and 365.

Actual Behavior

Validated with numbers between 7 and 365.

Relevant Error/Panic Output

$ terraform plan

│ Error: Invalid Attribute Value

│   with aws_bedrockagentcore_memory.example,
│   on agentcore_memory.tf line 5, in resource "aws_bedrockagentcore_memory" "example":
│    5:   event_expiry_duration = 1

│ Attribute event_expiry_duration value must be between 7 and 365, got: 1

Sample Terraform Configuration

Click to expand configuration
resource "aws_bedrockagentcore_memory" "example" {
  name                  = "example-memory"
  event_expiry_duration = 1
}

Steps to Reproduce

  1. Just run terraform plan with the above settings

Debug Logging

Click to expand log output

GenAI / LLM Assisted Development

n/a

Important Facts and References

https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_Memory.html

eventExpiryDuration
The number of days after which memory events will expire.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 365.
Required: Yes

Would you like to implement a fix?

No
This is a good first issue 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/bedrockagentcoreIssues and PRs that pertain to the bedrockagentcore service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions