mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(cloudformation): provision AWS::BedrockAgentCore::Runtime, RuntimeEndpoint and Memory The AgentCore control plane is emulated but had no CloudFormation provisioner, so the three types fell through to the generic stub that exposes only Arn and a template using Fn::GetAtt [Memory, MemoryArn] in an IAM policy failed the stack. BedrockAgentCoreCfnProvisioner maps every template property the services can store onto CreateAgentRuntime / CreateAgentRuntimeEndpoint / CreateMemory, publishes Ref as the registry schema's primaryIdentifier and Fn::GetAtt for every read-only property, updates in place when the create-only properties are unchanged and replaces otherwise, and deletes on stack teardown. Properties the emulated services have no model for are logged once at warn and listed in the docs. * fix(cloudformation): make AgentCore updates rollback-aware and authoritative Reachable through CfnProvisionerFixture (two-service inference arm). In-place updates snapshot the prior runtime, endpoint and memory configuration and tags, restore them on rollback, and delete a created entity when a later step of the same provision fails. The template is authoritative: UpdateAgentRuntime replaces the full configuration as AWS's PUT does (omitted authorizer, protocol and environment are cleared on the SDK path too), and the partial-update Memory and Endpoint calls get a replace-omitted overload for the provisioner. Nested AWS::NoValue members are omitted rather than stored blank, and the control service validates networkMode and serverProtocol with the API's ValidationException wording. * fix(cloudformation): accept AGUI runtimes and share the guarded provision helper The protocol check left out AGUI, which the AgentCore API and the Runtime schema allow, so an AG-UI runtime was refused through the API and in a stack. Ec2NetworkCfnProvisioner and BedrockAgentCoreCfnProvisioner carried the same guarded helper; it now lives on CfnRollback, taking the provisioner's in-place undo as a callback, and both use it.