{"id":22351483,"url":"https://github.com/garysassano/cdk-aws-cross-account-lambda","last_synced_at":"2026-05-12T23:35:35.540Z","repository":{"id":229326708,"uuid":"776308608","full_name":"garysassano/cdk-aws-cross-account-lambda","owner":"garysassano","description":"CDK app that deploys a Lambda function that gets invoked from another AWS account using Step Functions cross‑account access","archived":false,"fork":false,"pushed_at":"2024-07-07T21:38:37.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T13:14:15.557Z","etag":null,"topics":["aws","aws-cdk","aws-cdk-python","aws-lambda","aws-lambda-python","aws-step-functions","cdk","lambda","python","step-functions"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garysassano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T06:22:34.000Z","updated_at":"2024-07-07T21:38:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"50a4daf0-4755-447f-b0ee-951fc81354e3","html_url":"https://github.com/garysassano/cdk-aws-cross-account-lambda","commit_stats":null,"previous_names":["garysassano/cdk-aws-cross-account-lambda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-cross-account-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-cross-account-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-cross-account-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-cross-account-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garysassano","download_url":"https://codeload.github.com/garysassano/cdk-aws-cross-account-lambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650493,"owners_count":20650105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cdk","aws-cdk-python","aws-lambda","aws-lambda-python","aws-step-functions","cdk","lambda","python","step-functions"],"created_at":"2024-12-04T12:14:10.213Z","updated_at":"2026-05-12T23:35:35.534Z","avatar_url":"https://github.com/garysassano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdk-aws-cross-account-lambda\n\nCDK app that deploys a Lambda function that gets invoked by a Step Functions state machine in another AWS account. The repository is intended to demonstrate [cross‑account access for AWS Step Functions](https://aws.amazon.com/about-aws/whats-new/2022/11/simplify-cross-account-access-aws-services-step-functions/).\n\n## Prerequisites\n\n- **_AWS:_**\n  - Must have completed the steps detailed in the [Configuration](#configuration) section.\n- **_Node.js + npm:_**\n  - Must be [installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) in your system.\n- **_Poetry:_**\n  - Must be [installed](https://python-poetry.org/docs/#installation) in your system.\n\n## Configuration\n\nSet the following variables in your local environment:\n\n- `CDK_ACCOUNT_SRC` - The AWS account ID for the source stack (e.g. `123456789012`)\n- `CDK_REGION_SRC` - The AWS region for the source stack (e.g. `us-east-1`)\n- `CDK_ACCOUNT_TRG` - The AWS account ID for the target stack (e.g. `123456789012`)\n- `CDK_REGION_TRG` - The AWS region for the target stack (e.g. `us-east-1`)\n\nAfter that, complete the [CDK bootstrapping](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) process for both the `SRC` and `TRG` accounts.\n\n1. Execute the command below with a user having admin privileges in the `SRC` account:\n\n   ```sh\n   cdk bootstrap aws://$CDK_ACCOUNT_SRC/$CDK_REGION_SRC\n   ```\n\n2. Execute the command below with a user having admin privileges in the `TRG` account:\n\n   ```sh\n   cdk bootstrap aws://$CDK_ACCOUNT_TRG/$CDK_REGION_TRG --trust $CDK_ACCOUNT_SRC --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess\n   ```\n\n## Installation\n\n```sh\nnpx projen install\n```\n\n## Deployment\n\nExecute the command below as admin of the `SRC` account:\n\n```sh\nnpx projen deploy --all --require-approval never\n```\n\n## Cleanup\n\nExecute the command below as admin of the `SRC` account:\n\n```sh\nnpx projen destroy --all --force\n```\n\n## Architecture Diagram\n\n![Architecture Diagram](./src/assets/arch-diagram.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarysassano%2Fcdk-aws-cross-account-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarysassano%2Fcdk-aws-cross-account-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarysassano%2Fcdk-aws-cross-account-lambda/lists"}