Skip to content

r/aws_bedrockagentcore_memory_strategy: Replace resource rather than erroring when configuration.consolidation, configuration.extraction, or configuration.reflection blocks are removed - #49188

Open
ewbankkit wants to merge 6 commits into
mainfrom
b-r/aws_bedrockagentcore_memory_strategy-ForceNew
Open

r/aws_bedrockagentcore_memory_strategy: Replace resource rather than erroring when configuration.consolidation, configuration.extraction, or configuration.reflection blocks are removed#49188
ewbankkit wants to merge 6 commits into
mainfrom
b-r/aws_bedrockagentcore_memory_strategy-ForceNew

Conversation

@ewbankkit

@ewbankkit ewbankkit commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

Replaces resource rather than erroring when configuration.consolidation, configuration.extraction, or configuration.reflection blocks are removed.

Relations

Closes #49152.
Closes #47856.

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccBedrockAgentCoreMemoryStrategy_' PKG=bedrockagentcore ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Validating schemas
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/sdkv2     (cached)
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/framework (cached)
make: Running acceptance tests on branch: 🌿 b-r/aws_bedrockagentcore_memory_strategy-ForceNew 🌿...
TF_ACC=1 go1.26.5 test ./internal/service/bedrockagentcore/... -v -count 1 -parallel 4  -run=TestAccBedrockAgentCoreMemoryStrategy_ -timeout 360m -vet=off -buildvcs=false
2026/07/29 12:56:20 Creating Terraform AWS Provider (SDKv2-style)...
2026/07/29 12:56:20 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_basic
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_basic
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_disappears
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_disappears
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_namespacesToNamespaceTemplates
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_namespacesToNamespaceTemplates
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_namespaceTemplatesToNamespaces
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_namespaceTemplatesToNamespaces
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_standard
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_standard
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_custom
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_custom
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltin
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltin
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltinReflectionConfiguration
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltinReflectionConfiguration
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_episodicOverride
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_episodicOverride
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_basic
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_namespaceTemplatesToNamespaces
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_custom
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_standard
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_basic (514.75s)
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_episodicOverride
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_namespaceTemplatesToNamespaces (677.30s)
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltinReflectionConfiguration
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_episodicOverride (673.28s)
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_namespacesToNamespaceTemplates
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltinReflectionConfiguration (661.60s)
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_disappears
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_custom (1622.11s)
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltin
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_disappears (500.04s)
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_namespacesToNamespaceTemplates (671.60s)
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_standard (1913.63s)
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_episodicBuiltin (837.42s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagentcore   2465.326s

…erroring when `configuration.consolidation`, `configuration.extraction`, or `configuration.reflection` blocks are removed.
% make testacc TESTARGS='-run=TestAccBedrockAgentCoreMemoryStrategy_custom' PKG=bedrockagentcore
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Validating schemas
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/sdkv2     5.833s
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/framework 5.761s
make: Running acceptance tests on branch: 🌿 b-r/aws_bedrockagentcore_memory_strategy-ForceNew 🌿...
TF_ACC=1 go1.26.5 test ./internal/service/bedrockagentcore/... -v -count 1 -parallel 20  -run=TestAccBedrockAgentCoreMemoryStrategy_custom -timeout 360m -vet=off -buildvcs=false
2026/07/29 12:13:03 Creating Terraform AWS Provider (SDKv2-style)...
2026/07/29 12:13:03 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccBedrockAgentCoreMemoryStrategy_custom
=== PAUSE TestAccBedrockAgentCoreMemoryStrategy_custom
=== CONT  TestAccBedrockAgentCoreMemoryStrategy_custom
--- PASS: TestAccBedrockAgentCoreMemoryStrategy_custom (1625.70s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/bedrockagentcore   1631.675s
@github-actions

Copy link
Copy Markdown
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions Bot added prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. provider Pertains to the provider itself, rather than any interaction with AWS. service/bedrockagentcore Issues and PRs that pertain to the bedrockagentcore service. size/M Managed by automation to categorize the size of a PR. labels Jul 29, 2026
@ewbankkit
ewbankkit marked this pull request as ready for review July 29, 2026 18:02
@ewbankkit
ewbankkit requested a review from a team as a code owner July 29, 2026 18:02
@dosubot dosubot Bot added the bug Addresses a defect in current functionality. label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. provider Pertains to the provider itself, rather than any interaction with AWS. service/bedrockagentcore Issues and PRs that pertain to the bedrockagentcore service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

1 participant