Files
floci/compatibility-tests/sdk-test-java/src/test
Matan Baruch 8b23ed8f4a feat(secretsmanager): persist and return secret resource policies (#2587)
PutResourcePolicy and DeleteResourcePolicy were inert stubs returning an
empty object, and GetResourcePolicy never returned a policy, so
aws_secretsmanager_secret_policy could not be created through Terraform
or Pulumi: the provider uses the ARN echoed by PutResourcePolicy as the
resource id, and an empty response fails the create outright.

The policy is now stored on the secret and round-trips through the three
ops, which also share the existing recovery-window guard: real AWS
rejects all three on a secret marked for deletion with
InvalidRequestException, and the provider substring-matches that message
on GetResourcePolicy to treat the policy as gone.

BlockPublicPolicy is accepted but not enforced, and
MalformedPolicyDocumentException fires on JSON-parse failure only.
2026-08-26 11:41:55 -04:00
..