Skip to content

add support for Fn::Transform in CFn v2 #12689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

pinzon
Copy link
Member

@pinzon pinzon commented May 29, 2025

Motivation

This PR adds support of resolving and executing Fn::Transform intrinsic functions in the new CloudFormation engine v2. For both: AWS::Include and user defined Macros.

Changes

  • Add capabilities of resolving function in the ChangeSetModelTransform class.

Testing

  • New AWS validated tests to confirm that the function works with change sets.

Copy link

github-actions bot commented May 29, 2025

Test Results - Preflight, Unit

21 862 tests  ±0   20 205 ✅ ±0   6m 22s ⏱️ +4s
     1 suites ±0    1 657 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 4b41da3. ± Comparison against base commit 04aa2bc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 29, 2025

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 9s ⏱️ +2s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 4b41da3. ± Comparison against base commit 04aa2bc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 29, 2025

Test Results - Alternative Providers

1 000 tests  +12   625 ✅ +4   36m 51s ⏱️ + 3m 4s
    4 suites ± 0   366 💤  - 1 
    4 files   ± 0     9 ❌ +9 

For more details on these failures, see this check.

Results for commit e3384dd. ± Comparison against base commit 6348947.

This pull request skips 4 and un-skips 5 tests.
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_changesets ‑ test_autoexpand_capability_requirement
tests.aws.services.cloudformation.v2.ported_from_v1.resources.test_stack_sets ‑ test_create_stack_set_with_stack_instances
tests.aws.services.cloudformation.v2.ported_from_v1.test_template_engine.TestMacros ‑ test_error_pass_macro_as_reference
tests.aws.services.cloudformation.v2.ported_from_v1.test_template_engine.TestMacros ‑ test_to_validate_template_limit_for_macro
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_stacks.TestStacksApi ‑ test_update_stack_with_same_template_withoutchange
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_templates ‑ test_create_stack_from_s3_template_url[http_host]
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_templates ‑ test_create_stack_from_s3_template_url[http_invalid]
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_templates ‑ test_create_stack_from_s3_template_url[http_path]
tests.aws.services.cloudformation.v2.ported_from_v1.api.test_templates ‑ test_create_stack_from_s3_template_url[s3_url]

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 29, 2025

LocalStack Community integration with Pro

    2 files  ± 0      2 suites  ±0   1h 42m 27s ⏱️ - 4m 6s
4 941 tests +12  4 152 ✅ ±0  789 💤 +12  0 ❌ ±0 
4 943 runs  +12  4 152 ✅ ±0  791 💤 +12  0 ❌ ±0 

Results for commit 4b41da3. ± Comparison against base commit 04aa2bc.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 29, 2025

Test Results (amd64) - Integration, Bootstrap

    5 files      5 suites   2h 23m 1s ⏱️
5 300 tests 4 357 ✅ 942 💤 1 ❌
5 306 runs  4 357 ✅ 948 💤 1 ❌

For more details on these failures, see this check.

Results for commit 4b41da3.

♻️ This comment has been updated with latest results.

@pinzon pinzon force-pushed the cfn/test/fn-transform-include branch 2 times, most recently from c450be1 to 7bd5f66 Compare June 2, 2025 15:45
@tiurin tiurin added this to the Playground milestone Jun 4, 2025
@pinzon pinzon force-pushed the cfn/test/fn-transform-include branch from 4aa21fe to 8b24925 Compare June 20, 2025 19:35
@pinzon pinzon force-pushed the cfn/test/fn-transform-include branch 3 times, most recently from 57aef60 to 6d9299d Compare July 2, 2025 18:09
@pinzon pinzon force-pushed the cfn/test/fn-transform-include branch from eee09b0 to a61e2bb Compare July 14, 2025 15:07
@pinzon pinzon changed the title wip: add tests for Fn::Transform in change sets add support for Fn::Transform in CFn v2 Jul 15, 2025
@pinzon pinzon added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Jul 15, 2025
@pinzon pinzon force-pushed the cfn/test/fn-transform-include branch from 9b55a00 to 4b41da3 Compare July 17, 2025 14:40
@localstack-bot
Copy link
Contributor

Currently, only patch changes are allowed on main. Your PR labels (semver: minor) indicate that it cannot be merged into the main at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants