The Simplest Way to Make Cloudformation and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair cloudformation and testcomplete to build fresh cloud stacks and run UI tests right away. This setup lets your team test every code change in a clean stack before release. Many teams struggle to link stack builds with test runners in a safe way. Hardcoded keys and slow manual steps often break the pipeline or leak secrets. When you link these two tools well, each code push triggers a clean stack build. Next, the test runner runs checks and tears down the stack when finished. How cloud

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You pair cloudformation and testcomplete to build fresh cloud stacks and run UI tests right away. This setup lets your team test every code change in a clean stack before release.

Many teams struggle to link stack builds with test runners in a safe way. Hardcoded keys and slow manual steps often break the pipeline or leak secrets. When you link these two tools well, each code push triggers a clean stack build. Next, the test runner runs checks and tears down the stack when finished.

How cloudformation and testcomplete share roles and data

First, your build tool tells AWS to create a new stack from a template. This template sets up servers, databases, and network rules for the app under test. It also creates a specific role for the test runner to use during the run.

Once the stack is ready, it outputs the new app URLs and network paths. Your build pipeline reads these outputs and passes them to the test runner. The test runner then starts a test node and loads the right test suite.

To log in, the test node assumes the temporary AWS role for that single run. It reads test user credentials from a secret store instead of plain text files. Then it drives the browser or desktop app and sends test results back to storage.

Common failure modes and how to scope access

Many teams use one shared service account for every stack build and test run. This shared account often holds broad admin rights across the whole cloud account. If a test script leaks a key, an attacker can reach production data.

Another common bug is leaving test ports open to the public internet. Teams do this so cloud test runners can reach the new test stack with ease. Instead, you should run test nodes inside the same private network as the test stack. Set security rules so only the test node subnet can talk to the app ports.

CloudFormation Guard + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged database queries during test setup also cause big audit gaps for security teams. Test scripts often connect to backend databases to seed test data or check results. When every test uses the same database user, you cannot tell which run changed data. If a test touches real user data by mistake, you must mask sensitive fields. Masking rewrites matched emails, phone numbers, card numbers, and national IDs in query results.

How to keep test stacks fast and clean

Leftover test stacks waste money and leave old network paths open to attack. Always set a stack policy or build step that deletes the stack after tests finish. Make sure this cleanup step runs even when the UI tests fail or time out.

Keep your stack templates small so the test runner does not wait long. Split shared network parts from the app servers that change on every code push. Build the base network once, and spin up only the app layer for each test. Tag every resource with a build ID so you can track costs and find orphans.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do I pass stack URLs to my test runner?

Define stack outputs in your template for each new web address or host name. Your build script reads those output values and passes them as test variables.

Where should I store test user passwords for UI tests?

Store all test logins inside a managed cloud secret store instead of your code repo. Give the test runner role read rights to only the secrets it needs.

How do I stop failed test runs from leaving stacks behind?

Use a post-run step in your build pipeline that always runs after the test stage. Have that step trigger stack deletion whether the test suite passes or fails.

The query runs. The emails stay hidden.