Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
feat: CodeBuild service, CloudFront OAC, CFN Route53 RecordSet + CloudWatch Alarm, Lambda ESM layers — v1.2.4 (#267)
Nahuel Nucera4febab530e26
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex dfc3993d..254d8536 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,11 +7,27 @@ Versioning follows [Semantic Versioning](https://semver.org/).---+## [1.2.4] — 2026-04-11++### Added+- **CodeBuild service** — new service with 11 API operations: CreateProject, BatchGetProjects, ListProjects, UpdateProject, DeleteProject, StartBuild, BatchGetBuilds, StopBuild, ListBuilds, ListBuildsForProject, BatchDeleteBuilds. Contributed by @Nikhiladiga (#253)+- **CloudFront Origin Access Control (OAC)** — CreateOriginAccessControl, GetOriginAccessControl, GetOriginAccessControlConfig, ListOriginAccessControls, UpdateOriginAccessControl, DeleteOriginAccessControl. Contributed by @yskarparis (#258)+- **CloudFormation `AWS::Route53::RecordSet`** — provisions A, AAAA, CNAME, and alias records with weighted/failover/geo routing support. Contributed by @aldokimi (#263)+- **CloudFormation `AWS::CloudWatch::Alarm`** — provisions metric alarms with full lifecycle (create/delete). Contributed by @aldokimi (#265)+- **Lambda ESM layer symlink** — Node.js ESM `import()` now resolves packages from Lambda Layers via symlinked `node_modules`. Contributed by @bognari (#259)++### Fixed+- **CodeBuild multitenancy** — switched from plain `dict` to `AccountScopedDict` for proper account scoping+- **CFN test merge conflict** — separated mangled CloudWatch Alarm and Route53 RecordSet tests into independent functions++---+## [1.2.3] — 2026-04-11### Fixed- **Go SDK v2 `failed to close HTTP response body` warning** — uvicorn's default keep-alive timeout (5s) was too short for Go/Java SDK connection pools (~90s idle). Increased to 75s to match AWS ALB defaults. Affected all services, most visible with DynamoDB health checks. Reported by @mspiller (#249)-- **SSM inline tags regression test** — added test for `PutParameter` with inline `Tags` followed by `ListTagsForResource`. Contributed by @bognari+- **SSM inline tags regression test** — added test for `PutParameter` with inline `Tags` followed by `ListTagsForResource`. Contributed by @bognari (#254)+---## [1.2.2] — 2026-04-11diff --git a/README.md b/README.mdindex e4eb790d..876064db 100644--- a/README.md+++ b/README.md@@ -4,20 +4,20 @@<h1 align="center">MiniStack</h1><p align="center"><strong>Free, open-source local AWS emulator. Free forever.</strong></p>-<p align="center">40 AWS services on a single port · Terraform compatible · Real databases · MIT licensed</p>+<p align="center">41 AWS services on a single port · Terraform compatible · Real databases · MIT licensed</p><p align="center">- <a href="https://github.com/Nahuel990/ministack/releases"><img src="https://img.shields.io/github/v/release/Nahuel990/ministack" alt="GitHub release"></a>- <a href="https://github.com/Nahuel990/ministack/actions"><img src="https://img.shields.io/github/actions/workflow/status/Nahuel990/ministack/ci.yml?branch=master" alt="Build"></a>- <a href="https://hub.docker.com/r/nahuelnucera/ministack"><img src="https://img.shields.io/docker/pulls/nahuelnucera/ministack" alt="Docker Pulls"></a>- <a href="https://hub.docker.com/r/nahuelnucera/ministack"><img src="https://img.shields.io/docker/image-size/nahuelnucera/ministack/latest" alt="Docker Image Size"></a>- <a href="https://github.com/Nahuel990/ministack/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Nahuel990/ministack" alt="License"></a>+ <a href="https://github.com/ministackorg/ministack/releases"><img src="https://img.shields.io/github/v/release/ministackorg/ministack" alt="GitHub release"></a>+ <a href="https://github.com/ministackorg/ministack/actions"><img src="https://img.shields.io/github/actions/workflow/status/ministackorg/ministack/ci.yml?branch=master" alt="Build"></a>+ <a href="https://hub.docker.com/r/ministackorg/ministack"><img src="https://img.shields.io/docker/pulls/ministackorg/ministack" alt="Docker Pulls"></a>+ <a href="https://hub.docker.com/r/ministackorg/ministack"><img src="https://img.shields.io/docker/image-size/ministackorg/ministack/latest" alt="Docker Image Size"></a>+ <a href="https://github.com/ministackorg/ministack/blob/master/LICENSE"><img src="https://img.shields.io/github/license/ministackorg/ministack" alt="License"></a><img src="https://img.shields.io/badge/python-3.12-blue" alt="Python">- <a href="https://github.com/Nahuel990/ministack/stargazers"><img src="https://img.shields.io/github/stars/Nahuel990/ministack" alt="GitHub stars"></a>+ <a href="https://github.com/ministackorg/ministack/stargazers"><img src="https://img.shields.io/github/stars/ministackorg/ministack" alt="GitHub stars"></a></p><p align="center">- <a href="https://ministack.org">Website</a> · <a href="https://hub.docker.com/r/nahuelnucera/ministack">Docker Hub</a> · <a href="https://www.linkedin.com/company/ministackorg/">LinkedIn</a> · <a href="https://www.producthunt.com/products/ministack">Product Hunt</a>+ <a href="https://ministack.org">Website</a> · <a href="https://hub.docker.com/r/ministackorg/ministack">Docker Hub</a> · <a href="https://www.linkedin.com/company/ministackorg/">LinkedIn</a> · <a href="https://www.producthunt.com/products/ministack">Product Hunt</a></p>---@@ -26,7 +26,7 @@LocalStack recently moved its core services behind a paid plan. If you relied on LocalStack Community for local development and CI/CD pipelines, MiniStack is your free alternative.-- **40 AWS services** emulated on a single port (4566)+- **41 AWS services** emulated on a single port (4566)- **Drop-in compatible** — works with `boto3`, AWS CLI, Terraform, CDK, Pulumi, any SDK- **Real infrastructure** — RDS spins up actual Postgres/MySQL containers, ElastiCache spins up real Redis, Athena runs real SQL via DuckDB, ECS runs real Docker containers- **Tiny footprint** — ~200MB image, ~30MB RAM at idle vs LocalStack's ~1GB image and ~500MB RAM@@ -44,13 +44,13 @@ ministack# Runs on http://localhost:4566 — use GATEWAY_PORT=XXXX to change# Option 2: Docker Hub-docker run -p 4566:4566 nahuelnucera/ministack+docker run -p 4566:4566 ministackorg/ministack# Option 2b: Docker Hub with real infrastructure (RDS, ECS, Lambda containers)-docker run -p 4566:4566 -v /var/run/docker.sock:/var/run/docker.sock nahuelnucera/ministack+docker run -p 4566:4566 -v /var/run/docker.sock:/var/run/docker.sock ministackorg/ministack# Option 3: Clone and build-git clone https://github.com/Nahuel990/ministack+git clone https://github.com/ministackorg/ministackcd ministackdocker compose up -d@@ -453,6 +453,7 @@ Unsupported resource types fail with `CREATE_FAILED` (or `ROLLBACK_COMPLETE` if| **RDS Data API** | ExecuteStatement, BatchExecuteStatement, BeginTransaction, CommitTransaction, RollbackTransaction | Routes SQL to real Docker-backed RDS database containers; supports MySQL (pymysql) and PostgreSQL (psycopg2); REST paths (`/Execute`, `/BeginTransaction`, etc.) || **S3 Files** | CreateFileSystem, GetFileSystem, ListFileSystems, DeleteFileSystem, CreateMountTarget, GetMountTarget, ListMountTargets, UpdateMountTarget, DeleteMountTarget, CreateAccessPoint, GetAccessPoint, ListAccessPoints, DeleteAccessPoint, GetFileSystemPolicy, PutFileSystemPolicy, DeleteFileSystemPolicy, GetSynchronizationConfiguration, PutSynchronizationConfiguration, TagResource, UntagResource, ListTagsForResource | 21 operations; control plane for the new S3 Files service (launched April 2026); file systems, mount targets, access points, policies || **AutoScaling** | CreateAutoScalingGroup, DescribeAutoScalingGroups, UpdateAutoScalingGroup, DeleteAutoScalingGroup, DescribeAutoScalingInstances, CreateLaunchConfiguration, DescribeLaunchConfigurations, DeleteLaunchConfiguration, PutScalingPolicy, DescribePolicies, DeletePolicy, PutLifecycleHook, DescribeLifecycleHooks, DeleteLifecycleHook, CompleteLifecycleAction, RecordLifecycleActionHeartbeat, PutScheduledUpdateGroupAction, DescribeScheduledActions, DeleteScheduledAction, CreateOrUpdateTags, DescribeTags, DeleteTags | 22 actions; in-memory state — no real instance scaling; full ASG lifecycle (launch configs, scaling policies, lifecycle hooks, scheduled actions, tags); CDK/Terraform compatible |+| **CodeBuild** | CreateProject, BatchGetProjects, ListProjects, UpdateProject, DeleteProject, StartBuild, BatchGetBuilds, StopBuild, ListBuilds, ListBuildsForProject, BatchDeleteBuilds | 11 actions; builds complete immediately with SUCCEEDED status; project and build metadata stored in-memory |---@@ -638,14 +639,14 @@ Install DuckDB for full Athena SQL compatibility: `pip install ministack[full]`.When `PERSIST_STATE=1`, MiniStack saves service state to `STATE_DIR` on shutdown and reloads it on startup. Writes are atomic (write-to-tmp then rename) to prevent corruption on crash.-Services currently supporting persistence: **All 40 services** — API Gateway v1/v2, ALB, ACM, AppSync, Athena, Cloud Map, CloudFront, CloudWatch, CloudWatch Logs, Cognito, DynamoDB, EC2, ECR, ECS, EFS, ElastiCache, EMR, EventBridge, Firehose, Glue, IAM/STS, Kinesis, KMS, Lambda, RDS, Route 53, S3, Secrets Manager, SES, SES v2, SNS, SQS, SSM, Step Functions, WAF v2+Services currently supporting persistence: **All 41 services** — API Gateway v1/v2, ALB, ACM, AppSync, Athena, Cloud Map, CloudFront, CloudWatch, CloudWatch Logs, CodeBuild, Cognito, DynamoDB, EC2, ECR, ECS, EFS, ElastiCache, EMR, EventBridge, Firehose, Glue, IAM/STS, Kinesis, KMS, Lambda, RDS, Route 53, S3, Secrets Manager, SES, SES v2, SNS, SQS, SSM, Step Functions, WAF v2```bashdocker run -p 4566:4566 \-e PERSIST_STATE=1 \-e STATE_DIR=/data/ministack-state \-v /tmp/ministack-data:/data \- nahuelnucera/ministack+ ministackorg/ministack```### Lambda Warm Starts@@ -736,7 +737,7 @@ pip install boto3 pytest duckdb docker cbor2# Start MiniStackdocker compose up -d-# Run the full test suite (1,146 tests across all 40 services)+# Run the full test suite (1,188 tests across all 41 services)pytest tests/ -v```@@ -776,7 +777,9 @@ provider "aws" {appsync = "http://localhost:4566"athena = "http://localhost:4566"cloudformation = "http://localhost:4566"+ cloudfront = "http://localhost:4566"cloudwatch = "http://localhost:4566"+ codebuild = "http://localhost:4566"cognitoidentity = "http://localhost:4566"cognitoidp = "http://localhost:4566"dynamodb = "http://localhost:4566"@@ -808,7 +811,6 @@ provider "aws" {stepfunctions = "http://localhost:4566"sts = "http://localhost:4566"wafv2 = "http://localhost:4566"- cloudfront = "http://localhost:4566"}}```@@ -930,6 +932,7 @@ See [`Testcontainers/java-testcontainers`](Testcontainers/java-testcontainers),| **CloudFront** | ✅ | Paid | ✅ || **AppSync** | ✅ | NO | ✅ || **Cloud Map** | ✅ | ❌ | ✅ |+| **CodeBuild** | ✅ | ✅ | ✅ || **S3 Files** | ✅ | ❌ | ❌ || Cost | **Free forever** | Was free, now paid | $35+/mo || Docker image size | ~250MB | ~1GB | ~1GB |diff --git a/Testcontainers/go-testcontainers/README.md b/Testcontainers/go-testcontainers/README.mdindex 23f66439..0ba3598c 100644--- a/Testcontainers/go-testcontainers/README.md+++ b/Testcontainers/go-testcontainers/README.md@@ -14,7 +14,7 @@ go mod tidygo test ./... -v```-Testcontainers will pull `nahuelnucera/ministack:latest`, start it, run the tests, and tear it down automatically.+Testcontainers will pull `ministackorg/ministack:latest`, start it, run the tests, and tear it down automatically.## What's testeddiff --git a/Testcontainers/go-testcontainers/go.mod b/Testcontainers/go-testcontainers/go.modindex 1970facf..f15b60e0 100644--- a/Testcontainers/go-testcontainers/go.mod+++ b/Testcontainers/go-testcontainers/go.mod@@ -1,4 +1,4 @@-module github.com/nahuelnucera/ministack/examples/go-testcontainers+module github.com/ministackorg/ministack/examples/go-testcontainersgo 1.24.0diff --git a/Testcontainers/go-testcontainers/ministack_test.go b/Testcontainers/go-testcontainers/ministack_test.goindex db0ec95b..eac31b15 100644--- a/Testcontainers/go-testcontainers/ministack_test.go+++ b/Testcontainers/go-testcontainers/ministack_test.go@@ -22,7 +22,7 @@ func newMiniStackContainer(ctx context.Context, t *testing.T) (string, func()) {t.Helper()req := testcontainers.ContainerRequest{- Image: "nahuelnucera/ministack:latest",+ Image: "ministackorg/ministack:latest",ExposedPorts: []string{"4566/tcp"},Env: map[string]string{"GATEWAY_PORT": "4566",diff --git a/Testcontainers/java-testcontainers/README.md b/Testcontainers/java-testcontainers/README.mdindex 3b1492e6..f8dff50b 100644--- a/Testcontainers/java-testcontainers/README.md+++ b/Testcontainers/java-testcontainers/README.md@@ -14,7 +14,7 @@ Integration tests for S3, SQS, and DynamoDB using [Testcontainers](https://testcmvn test```-Testcontainers will pull `nahuelnucera/ministack:latest`, start it, run the tests, and tear it down automatically.+Testcontainers will pull `ministackorg/ministack:latest`, start it, run the tests, and tear it down automatically.## What's testeddiff --git a/Testcontainers/java-testcontainers/src/test/java/io/ministack/MiniStackTest.java b/Testcontainers/java-testcontainers/src/test/java/io/ministack/MiniStackTest.javaindex 9fb9079e..ff1cbd45 100644--- a/Testcontainers/java-testcontainers/src/test/java/io/ministack/MiniStackTest.java+++ b/Testcontainers/java-testcontainers/src/test/java/io/ministack/MiniStackTest.java@@ -32,7 +32,7 @@ class MiniStackTest {@Containerstatic final GenericContainer<?> ministack = new GenericContainer<>(- DockerImageName.parse("nahuelnucera/ministack:latest"))+ DockerImageName.parse("ministackorg/ministack:latest")).withExposedPorts(4566).withEnv("GATEWAY_PORT", "4566").withEnv("LOG_LEVEL", "INFO")diff --git a/Testcontainers/python-testcontainers/test_ministack.py b/Testcontainers/python-testcontainers/test_ministack.pyindex 293bb99c..37acbf82 100644--- a/Testcontainers/python-testcontainers/test_ministack.py+++ b/Testcontainers/python-testcontainers/test_ministack.py@@ -10,7 +10,7 @@ from testcontainers.core.waiting_utils import wait_for_logs@pytest.fixture(scope="module")def ministack():"""Start a MiniStack container and wait for it to be healthy."""- container = DockerContainer("nahuelnucera/ministack:latest").with_exposed_ports(4566)+ container = DockerContainer("ministackorg/ministack:latest").with_exposed_ports(4566)container.start()host = container.get_container_host_ip()diff --git a/docker-compose.yml b/docker-compose.ymlindex 221ab611..f23fac3a 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -3,7 +3,7 @@ version: "3.8"services:ministack:build: .- image: nahuelnucera/ministack:latest+ image: ministackorg/ministack:latestcontainer_name: ministackports:- "4566:4566"diff --git a/ministack/services/cloudformation/provisioners.py b/ministack/services/cloudformation/provisioners.pyindex 06d855e7..b9cd8993 100644--- a/ministack/services/cloudformation/provisioners.py+++ b/ministack/services/cloudformation/provisioners.py@@ -2113,12 +2113,11 @@ def _r53_resolve_hosted_zone_id(props: dict) -> str:def _r53_record_set_create(logical_id, props, stack_name):zone_id = _r53_resolve_hosted_zone_id(props)- with _r53._lock:- if zone_id not in _r53._zones:- raise ValueError(f"No hosted zone with id '{zone_id}'")rs = _r53_record_set_build_rs(props)key = _r53._rs_key(rs)with _r53._lock:+ if zone_id not in _r53._zones:+ raise ValueError(f"No hosted zone with id '{zone_id}'")current = list(_r53._records.get(zone_id, []))if any(_r53._rs_key(r) == key for r in current):raise ValueError(diff --git a/ministack/services/codebuild.py b/ministack/services/codebuild.pyindex 9db3d4c2..0b60526e 100644--- a/ministack/services/codebuild.py+++ b/ministack/services/codebuild.py@@ -16,18 +16,17 @@ import osimport timefrom ministack.core.persistence import PERSIST_STATE, load_state-from ministack.core.responses import error_response_json, json_response, new_uuid, now_iso+from ministack.core.responses import AccountScopedDict, error_response_json, get_account_id, json_response, new_uuid, now_isologger = logging.getLogger("codebuild")-ACCOUNT_ID = os.environ.get("MINISTACK_ACCOUNT_ID", "000000000000")REGION = os.environ.get("MINISTACK_REGION", "us-east-1")# ---------------------------------------------------------------------------# In-memory state# ----------------------------------------------------------------------------_projects: dict = {} # project_name -> project record-_builds: dict = {} # build_id -> build record+_projects = AccountScopedDict() # project_name -> project record+_builds = AccountScopedDict() # build_id -> build recorddef reset():@@ -57,11 +56,11 @@ if _restored:# ---------------------------------------------------------------------------def _project_arn(name):- return f"arn:aws:codebuild:{REGION}:{ACCOUNT_ID}:project/{name}"+ return f"arn:aws:codebuild:{REGION}:{get_account_id()}:project/{name}"def _build_arn(build_id):- return f"arn:aws:codebuild:{REGION}:{ACCOUNT_ID}:build/{build_id}"+ return f"arn:aws:codebuild:{REGION}:{get_account_id()}:build/{build_id}"def _build_id(project_name):@@ -102,8 +101,8 @@ def _make_build_record(project, build_id, source_version=None):"streamName": build_id.replace(":", "/"),},"timeoutInMinutes": project.get("timeoutInMinutes", 60),- "initiator": f"{ACCOUNT_ID}/user",- "encryptionKey": f"arn:aws:kms:{REGION}:{ACCOUNT_ID}:alias/aws/codebuild",+ "initiator": f"{get_account_id()}/user",+ "encryptionKey": f"arn:aws:kms:{REGION}:{get_account_id()}:alias/aws/codebuild",}@@ -166,13 +165,13 @@ def _create_project(data):"computeType": "BUILD_GENERAL1_SMALL",}),"serviceRole": data.get("serviceRole",- f"arn:aws:iam::{ACCOUNT_ID}:role/codebuild-role"),+ f"arn:aws:iam::{get_account_id()}:role/codebuild-role"),"timeoutInMinutes": data.get("timeoutInMinutes", 60),"tags": data.get("tags", []),"created": now,"lastModified": now,"encryptionKey": data.get("encryptionKey",- f"arn:aws:kms:{REGION}:{ACCOUNT_ID}:alias/aws/codebuild"),+ f"arn:aws:kms:{REGION}:{get_account_id()}:alias/aws/codebuild"),"badge": {"badgeEnabled": False},}_projects[name] = project@@ -265,7 +264,7 @@ def _start_build(data):build = _make_build_record(project, bid, data.get("sourceVersion"))_builds[bid] = buildlogger.info("StartBuild: %s -> %s", project_name, bid)- return json_response({"build": build})+ return json_response({"build": copy.deepcopy(build)})def _batch_get_builds(data):@@ -291,7 +290,7 @@ def _stop_build(data):build["endTime"] = now_iso()build["currentPhase"] = "COMPLETED"logger.info("StopBuild: %s", bid)- return json_response({"build": build})+ return json_response({"build": copy.deepcopy(build)})def _list_builds(data):diff --git a/pyproject.toml b/pyproject.tomlindex fffa4264..6e1722b9 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.2.3"+version = "1.2.4"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }@@ -50,9 +50,9 @@ dev = [][project.urls]-Homepage = "https://github.com/Nahuel990/ministack"-Repository = "https://github.com/Nahuel990/ministack"-Issues = "https://github.com/Nahuel990/ministack/issues"+Homepage = "https://github.com/ministackorg/ministack"+Repository = "https://github.com/ministackorg/ministack"+Issues = "https://github.com/ministackorg/ministack/issues"[project.scripts]ministack = "ministack.app:main"diff --git a/tests/test_cfn.py b/tests/test_cfn.pyindex ee7aa48c..d663e16b 100644--- a/tests/test_cfn.py+++ b/tests/test_cfn.py@@ -1193,6 +1193,35 @@ def test_cfn_cloudwatch_alarm_lifecycle(cfn, cw):"Threshold": 80.0,"ComparisonOperator": "GreaterThanThreshold","TreatMissingData": "notBreaching",+ },+ },+ },+ "Outputs": {+ "AlarmNameOut": {"Value": {"Ref": "CpuAlarm"}},+ "AlarmArnOut": {"Value": {"Fn::GetAtt": ["CpuAlarm", "Arn"]}},+ },+ }+ cfn.create_stack(StackName=stack_name, TemplateBody=json.dumps(template))+ stack = _wait_stack(cfn, stack_name)+ assert stack["StackStatus"] == "CREATE_COMPLETE"++ outputs = {o["OutputKey"]: o["OutputValue"] for o in stack.get("Outputs", [])}+ assert outputs["AlarmNameOut"] == alarm_name+ assert outputs["AlarmArnOut"].endswith(f":alarm:{alarm_name}")++ resp = cw.describe_alarms(AlarmNames=[alarm_name])+ assert len(resp["MetricAlarms"]) == 1+ a = resp["MetricAlarms"][0]+ assert a["MetricName"] == "CPUUtilization"+ assert a["Namespace"] == f"CfnCwTest/{uid}"+ assert float(a["Threshold"]) == 80.0++ cfn.delete_stack(StackName=stack_name)+ _wait_stack(cfn, stack_name)+ resp2 = cw.describe_alarms(AlarmNames=[alarm_name])+ assert resp2["MetricAlarms"] == []++def test_cfn_route53_hosted_zone_and_record_set(cfn, r53):"""CloudFormation provisions Route53 HostedZone + RecordSet and removes records on delete."""uid = _uuid_mod.uuid4().hex[:8]@@ -1218,8 +1247,6 @@ def test_cfn_route53_hosted_zone_and_record_set(cfn, r53):},},"Outputs": {- "AlarmNameOut": {"Value": {"Ref": "CpuAlarm"}},- "AlarmArnOut": {"Value": {"Fn::GetAtt": ["CpuAlarm", "Arn"]}},"RecordFqdn": {"Value": {"Ref": "WebA"}},},}@@ -1228,20 +1255,6 @@ def test_cfn_route53_hosted_zone_and_record_set(cfn, r53):assert stack["StackStatus"] == "CREATE_COMPLETE"outputs = {o["OutputKey"]: o["OutputValue"] for o in stack.get("Outputs", [])}- assert outputs["AlarmNameOut"] == alarm_name- assert outputs["AlarmArnOut"].endswith(f":alarm:{alarm_name}")-- resp = cw.describe_alarms(AlarmNames=[alarm_name])- assert len(resp["MetricAlarms"]) == 1- a = resp["MetricAlarms"][0]- assert a["MetricName"] == "CPUUtilization"- assert a["Namespace"] == f"CfnCwTest/{uid}"- assert float(a["Threshold"]) == 80.0-- cfn.delete_stack(StackName=stack_name)- _wait_stack(cfn, stack_name)- resp2 = cw.describe_alarms(AlarmNames=[alarm_name])- assert resp2["MetricAlarms"] == []assert outputs["RecordFqdn"].endswith(".")resources = {r["LogicalResourceId"]: r for r in cfn.describe_stack_resources(StackName=stack_name)["StackResources"]}