Skip to content

Conversation

MEPalma
Copy link
Contributor

@MEPalma MEPalma commented Dec 4, 2024

Motivation

Currently the SFN v2 interpreter does not support cross account task invocations due to the lack of support of Credentials blocks (#11927, #11311). These changes add base support and testing setup for this feature.
Furthermore, this resolves an issue where optimised service integration with support for .sync operations but not .waitForTaskToken would bypass the setup of the callback endpoint but later attempt to listen for it, leading to States.Runtime exceptions when initiating the sync callback routine.

Changes

  • Lexing and parsing support for Credentials blocks and RoleArn declarations
  • support for role arn computation
  • support for assumed roles invocations
  • testing support for cross account tests

TODO

What's left to do:

  • tandem changes*

@MEPalma MEPalma added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Dec 4, 2024
@MEPalma MEPalma self-assigned this Dec 4, 2024
@MEPalma MEPalma added this to the 4.1 milestone Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

LocalStack Community integration with Pro

    2 files  ± 0      2 suites  ±0   1h 51m 34s ⏱️ -40s
3 892 tests +57  3 583 ✅ +64  309 💤  - 7  0 ❌ ±0 
3 894 runs  +57  3 583 ✅ +64  311 💤  - 7  0 ❌ ±0 

Results for commit d421ab0. ± Comparison against base commit 994758a.

♻️ This comment has been updated with latest results.

@MEPalma MEPalma marked this pull request as ready for review December 6, 2024 12:17
Copy link
Contributor

@gregfurman gregfurman left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome changes (+ a pretty gnarly diff; apologies for the delay here!

_THIS_FOLDER: Final[str] = os.path.dirname(os.path.realpath(__file__))


class CredentialsTemplates(TemplateLoader):
Copy link
Contributor

Choose a reason for hiding this comment

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

Wanna just clarify that we will only ever need the Credentials field when doing cross-account integrations? (see docs)

@MEPalma MEPalma merged commit a541d8b into master Dec 11, 2024
31 checks passed
@MEPalma MEPalma deleted the MEP-sfn-credentials branch December 11, 2024 19:04
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.

2 participants