mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
CDK's ApplicationListener.addCertificates puts the first certificate on the listener and emits one ListenerCertificate for each extra one. Floci had no provisioner for the type, so it was stubbed as CREATE_COMPLETE and did nothing; since the default certificate is held apart from the listener's certificate list, such a listener came up with an empty list and served none of its SNI certificates. ElbV2CfnProvisioner serves the type now. Create adds the declared certificates to the listener's list, as AddListenerCertificates does, and delete removes the ones the resource added, recorded per physical id because the id alone cannot carry them. Certificates updates in place, as the resource reference says: the certificates the template gains are added, then the ones it drops removed, and a failed update puts both back. ListenerArn is create-only, so a change replaces the resource: the certificates go onto the new listener, and come off the old one once the update commits. CloudFormation publishes no format for the resource's identifier, so Ref returns <ListenerArn>|<suffix>. AWS's published resource schemas have moved since the vendored tables were last synced: AWS::Lambda::Function gained AcceleratorConfig and RuntimeConfig, and AWS::ECS::TaskDefinition TrustedExecutionConfiguration. That fails the online check of those tables, which this change runs, so cfn-property-types.json and schema-surface.tsv are synced from AWS here, and the three new properties are recorded as accepted and ignored.