mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
* feat(cloudformation): provision AWS::WAFv2::IPSet Serve AWS::WAFv2::IPSet from WafV2CfnProvisioner instead of the dispatcher stub, so stacks with IP sets no longer fail in strict mode and Web ACL rules can resolve a real IP set ARN. Name and Scope are create-only: a change replaces the set with a new name|id|scope physical id (Ref) and deletes the prior one the same way a Web ACL replacement does, tolerating a cleanup failure so the new set is still tracked. Addresses, Description and Tags update in place through UpdateIPSet; IPAddressVersion is never passed to the update, matching the real API, so a template that flips it fails address validation and reports UPDATE_FAILED. Fn::GetAtt resolves Arn and Id from the backing set, and DeleteStack removes it, tolerating a set already gone. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * fix(cloudformation): defer IPSet replacement cleanup and honor its optional name Review follow-ups on the AWS::WAFv2::IPSet provisioner: - A renamed or re-scoped set now records the displaced one with ReplacementCleanup, so a failing delete of the prior set is reported by completeUpdate instead of being tolerated, and rollbackUpdate restores the prior set and deletes the replacement, the same contract the S3 bucket replacement follows. - IPAddressVersion is validated against IPV4/IPV6 on every provision. An in-place update never sends it to UpdateIPSet, so an unknown value would otherwise be accepted without ever reaching WAFv2. - Name is optional in the CloudFormation schema, matching what the Web ACL arm in the same provisioner already does: an omitted Name generates one on a create and reuses the existing set's name on an update. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * fix(cloudformation): mark AWS::WAFv2::IPSet Name and Scope create-only Name and Scope are create-only in the registry schema, so without an entry in create-only-properties.json a Scope change fell to the name-based default and showed Replacement: False in the change set. A resource that reads the set's Ref or Arn was then skipped by the update and kept the ARN of the set that replacement cleanup deletes. Also share the IPV4/IPV6 rule between the provisioner and WafV2Service.validateAddresses, which repeated it, so an unknown IPAddressVersion is rejected in one place. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> --------- Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>