{"id":18573149,"url":"https://github.com/localstack-samples/samples-cross-account-cross-region-testing","last_synced_at":"2026-07-17T05:35:22.183Z","repository":{"id":241781232,"uuid":"798894844","full_name":"localstack-samples/samples-cross-account-cross-region-testing","owner":"localstack-samples","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-30T06:38:46.000Z","size":477,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-10-29T09:39:57.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localstack-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-10T17:46:35.000Z","updated_at":"2024-05-30T06:38:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9ee6ed9-7f29-4f17-9ccd-f1af43a17d78","html_url":"https://github.com/localstack-samples/samples-cross-account-cross-region-testing","commit_stats":null,"previous_names":["localstack-samples/samples-cross-account-cross-region-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/localstack-samples/samples-cross-account-cross-region-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fsamples-cross-account-cross-region-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fsamples-cross-account-cross-region-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fsamples-cross-account-cross-region-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fsamples-cross-account-cross-region-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localstack-samples","download_url":"https://codeload.github.com/localstack-samples/samples-cross-account-cross-region-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fsamples-cross-account-cross-region-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35569651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T23:08:10.126Z","updated_at":"2026-07-17T05:35:22.153Z","avatar_url":"https://github.com/localstack-samples.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples for testing AWS cross-account \u0026 cross-region applications on LocalStack\n\nLocalStack automatically namespaces all resources based on the account ID and, in some cases, the region. However, there are certain resource types that can be accessed across multiple accounts or regions. This repository contains sample code and configuration files to test cross-account and cross-region applications on LocalStack.\n\n## Pre-requisites\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli) with [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/)\n- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) with [`awslocal`](https://docs.localstack.cloud/user-guide/integrations/aws-cli/#localstack-aws-cli-awslocal)\n\n## Enabling IAM Enforcement\n\nWhile running these samples, it is suggested to enable IAM Enforcement via `ENFORCE_IAM=1` while starting LocalStack. This will ensure that the IAM policies are enforced for the resources created in LocalStack, and you can reliably test your policies associated with cross-account and cross-region applications, in a scenario similar to the AWS environment.\n\n## Samples\n\n| Sample | Description |\n| --- | --- |\n| [SQS, S3 \u0026 Lambda setup](sqs-s3-apigw-lambda) | A sample setup to demonstrate cross-account and cross-region access between SQS, S3, and Lambda. |\n| [Step Functions \u0026 Lambda setup](stefunctions-lambda) | A sample setup to demonstrate the setup of a Step Functions state machine that invokes a Lambda function in a different account. |\n\n## Checking out a single sample\n\nTo check out a single sample, you can use the following commands:\n\n```bash\nmkdir samples-cross-account-cross-region-testing \u0026\u0026 cd samples-cross-account-cross-region-testing\ngit init\ngit remote add origin -f git@github.com:localstack-samples/samples-cross-account-cross-region-testing.git\ngit config core.sparseCheckout true\necho \u003cLOCALSTACK_SAMPLE_DIRECTORY_NAME\u003e \u003e\u003e .git/info/sparse-checkout\ngit pull origin main\n```\n\nThe above commands use `sparse-checkout` to only pull the sample you are interested in. You can find the name of the sample directory in the table above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fsamples-cross-account-cross-region-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalstack-samples%2Fsamples-cross-account-cross-region-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fsamples-cross-account-cross-region-testing/lists"}