mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
CDK passes TemplateURL as https://s3.{region}.amazonaws.com/{bucket}/{key}. The condition host.endsWith(".amazonaws.com") incorrectly matched this as virtual-hosted style, extracting "s3" as the bucket name instead of the real bucket. Fixed by only treating URLs with a bucket label before ".s3." as virtual-hosted. Also changed the failure path from silently returning "{}" (causing CREATE_COMPLETE with zero resources) to rethrowing so the stack correctly reaches CREATE_FAILED.