Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Add specialized code generation for AWS::WAFv2::WebACL Rules - #8265

Merged
vbustamante merged 1 commit into
mainfrom
victor/bug-1208-aws-wafv2-webacl
Jan 13, 2026
Merged

vbustamante merged 1 commit into
mainfrom
victor/bug-1208-aws-wafv2-webacl

Conversation

@vbustamante

Copy link
Copy Markdown
Contributor

How does this PR change the system?

This PR introduces specialized functions for generating and importing the Rules property for the AWS::WAFv2::WebACL resource. This is done so we can still import and use cloudformation to manage webACLs, while allowing the user to edit the values in the SI web app.

How was it tested?

  • Integration tests pass
  • Manual test: ran discover import and create on a new workspace with the assets

Does it require a docs change?

  • No

@github-actions

github-actions Bot commented Jan 13, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

Copy link
Copy Markdown

Working with Module Index at: https://module-index.systeminit.com
Total: 0 new asset(s), 1 changed asset(s)

AWS - 0 new, 1 changed asset(s)
[AWS::WAFv2::WebACL]: other schema contents 🔀3


// Override codegen functions to transform Rules array from JSON strings to objects
const createTargetId = CODE_GENERATION_FUNC_SPECS.awsCloudControlCreate.id;
const newCreateId = "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f2";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to generate real shas

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah sha256sum of a ULID

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good callout, fixed!

@vbustamante
vbustamante force-pushed the victor/bug-1208-aws-wafv2-webacl branch from 21586b5 to 2d77571 Compare January 13, 2026 21:43
@vbustamante
vbustamante added this pull request to the merge queue Jan 13, 2026
@github-actions

Copy link
Copy Markdown

Working with Module Index at: https://module-index.systeminit.com
Total: 0 new asset(s), 1 changed asset(s)

AWS - 0 new, 1 changed asset(s)
[AWS::WAFv2::WebACL]: other schema contents 🔀3

Merged via the queue into main with commit 8a0c0ed Jan 13, 2026
5 checks passed
@vbustamante
vbustamante deleted the victor/bug-1208-aws-wafv2-webacl branch January 13, 2026 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants