mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* feat(cloudformation): provision AWS::SecretsManager::SecretTargetAttachment AWS::SecretsManager::SecretTargetAttachment previously fell through the default branch, so its Ref yielded a generated placeholder rather than the secret ARN. Per the CloudFormation resource reference, this resource's Ref returns the ARN of the secret named in SecretId, and consumers such as Secret.fromSecretCompleteArn(...) require the complete ARN (with the trailing -6char suffix). Resolve SecretId (a Ref to the Secret, a friendly name, or a raw ARN) to the canonical complete ARN via describeSecret and expose it as the resource's physical id / Arn attribute, falling back to SecretId as-given if the lookup fails. Deleting the attachment is a detach no-op — it must not delete the underlying secret. * fix(cloudformation): require SecretId on SecretTargetAttachment SecretId is a required property of AWS::SecretsManager::SecretTargetAttachment. Resolving it as optional let a template omit it and still create (falling back to the logical id); reject a missing SecretId instead. Adds a regression test. * fix(cloudformation): complete secret target attachment lifecycle * fix(cloudformation): require attachment metadata on delete * fix(cloudformation): tolerate detached secret overwrites * fix(cloudformation): align secret target attachment behavior * docs(cloudformation): document secret target attachments --------- Co-authored-by: abanna <abanna@users.noreply.github.com>