10000 StepFunctions: Multi-accounts compatibility by viren-nadkarni · Pull Request #9119 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

StepFunctions: Multi-accounts compatibility #9119

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

Merged
merged 20 commits into from
Oct 6, 2023
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
79ec46e
[DEBUG] Use non default account and region
viren-nadkarni Aug 29, 2023
5cdc0bf
Add account and region context to executions
viren-nadkarni Sep 12, 2023
cfc9743
Use execution context for internal DDB client
viren-nadkarni Sep 12, 2023
2682b40
Build ARNs with proper account ID and region name
viren-nadkarni Sep 12, 2023
14eb9a2
Implement account ID namespacing for legacy stepfunctions provider
viren-nadkarni Sep 12, 2023
f4c8a85
Take account ID and region into consideration for internal requests
viren-nadkarni Sep 13, 2023
9cf16d0
Run the legacy SF tests in a hardcoded region
viren-nadkarni Sep 13, 2023
b2917c0
Use an alternative way to pass the context
viren-nadkarni Sep 13, 2023
e43191c
Use request context account ID and region during program construction
viren-nadkarni Sep 14, 2023
5ef3a98
Merge branch 'master' into stepfunctions-multi-accounts
viren-nadkarni Sep 14, 2023
aad9b80
Maintain backward compatibility
viren-nadkarni Sep 14, 2023
74d02eb
Use proper client utility for eventbridge
viren-nadkarni Sep 14, 2023
a4b0954
Merge branch 'master' into stepfunctions-multi-accounts
MEPalma Sep 29, 2023
54ba905
resources as evaluation components
MEPalma Oct 2, 2023
528eb7e
Merge branch 'master' into stepfunctions-multi-accounts
MEPalma Oct 2, 2023
dfc56cc
split resource into static and runtime parts, minors
MEPalma Oct 2, 2023
5d7cfe4
Merge branch 'master' into stepfunctions-multi-accounts
MEPalma Oct 4, 2023
c75017b
conflicts resolution, add resource evaluation to s3 distributed map r…
MEPalma Oct 4, 2023
90fd710
Merge branch 'master' into stepfunctions-multi-accounts
MEPalma Oct 6, 2023
670df14
revert non default account and region
MEPalma Oct 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use execution context for internal DDB client
  • Loading branch information
viren-nadkarni committed Sep 12, 2023
commit cfc974335d26487edd0119a10da2c22964eaad0f
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ def _from_error(self, env: Environment, ex: Exception) -> FailureEvent:

def _eval_service_task(self, env: Environment, parameters: dict) -> None:
api_action = camel_to_snake_case(self.resource.api_action)

dynamodb_client = connect_to(config=Config(parameter_validation=False)).dynamodb
execution = env.context_object_manager.context_object["Execution"]
dynamodb_client = connect_to(
aws_access_key_id=execution.account_id,
region_name=execution.region_name,
config=Config(parameter_validation=False),
).dynamodb
response = getattr(dynamodb_client, api_action)(**parameters)
response.pop("ResponseMetadata", None)
env.stack.append(response)
0