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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair backstage and cloudformation to let developers launch cloud stacks from one portal. The portal shows templates, and the stack engine builds the actual cloud parts. This setup stops ticket delays for new apps and databases. Developers fill out a short form in the portal. The portal then triggers a stack build in the cloud account. Teams get standard resources without writing long templates by hand. How backstage and cloudformation share roles and data The developer portal needs a s

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.

Teams pair backstage and cloudformation to let developers launch cloud stacks from one portal. The portal shows templates, and the stack engine builds the actual cloud parts.

This setup stops ticket delays for new apps and databases. Developers fill out a short form in the portal. The portal then triggers a stack build in the cloud account. Teams get standard resources without writing long templates by hand.

How backstage and cloudformation share roles and data

The developer portal needs a safe way to talk to your cloud account. You start by setting up a cloud role for the portal service. The portal assumes this role when a user submits a template form. It then sends the template and input values to the stack service.

The stack service reads the template and creates the cloud resources. During the build, the portal checks the stack status and shows updates. Once the build finishes, the stack sends outputs back to the portal. The portal saves these outputs in its catalog so teams can find them.

You can also link existing stacks to components in the catalog. The portal reads stack tags to match cloud parts with software owners. Developers see stack events and status right on their app page. They do not need to log in to the main cloud console.

Common failure modes and how to scope roles

Many teams give the portal one big admin key for the whole cloud. This single shared account is a major security risk. If an attacker steals that key, they can delete any cloud stack. Broad keys also make it hard to see who built what.

Another common issue is unlogged changes from the portal. When ten developers use one shared role, the cloud logs look identical. Security teams cannot trace a bad stack back to a specific user. You also risk letting junior staff launch costly servers in production accounts.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your roles by team and account type. Give the portal a basic role that can only start the stack tool. Then give the stack tool a separate role for the actual build. Scope each build role to the exact cloud parts that the template needs.

Lock down your network paths between the portal and the cloud APIs. Run the portal inside a private network and use private endpoints for API calls. Pass the developer user name as a tag on every stack run. This tag gives your audit logs a clear record of who asked for the build.

Keeping templates and catalog records in sync

Cloud stacks change over time as teams update their apps. If someone edits a stack outside the portal, the catalog shows old data. This drift causes errors when developers try to run updates later.

Set a clear rule that all stack edits must flow through source control. When a developer updates a template file, a pipeline pushes the change. The portal then refreshes its catalog by reading the latest stack state. This habit keeps your portal views and cloud resources matched up.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How does the portal know which cloud stacks belong to a service?

The portal matches stacks to services using resource tags and catalog metadata. When you tag a stack with the app name, the portal finds and links it.

Should the portal create cloud resources with its own main role?

No, the portal should only have permission to trigger the stack service. The stack service should assume a separate, scoped role to build the cloud resources.

How can we stop users from building unapproved cloud resources?

Lock down the templates in your portal and limit the stack execution roles. Users can only pick approved options in the form, and the role blocks extra actions.

The query runs. The emails stay hidden.