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

Published
Length
4 min read

Luis Felipe Dias

All posts

Using cloudformation and portworx together lets teams build cloud servers and container storage in one step. The template builds the compute nodes and network rules, then starts the storage software on each node. This workflow saves time for platform teams. Engineers define the whole stack in one text file. When the stack runs, the cloud provider creates virtual machines and raw block disks. Next, the startup script installs the storage service and joins the nodes into a cluster. Apps running i

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.

Using cloudformation and portworx together lets teams build cloud servers and container storage in one step. The template builds the compute nodes and network rules, then starts the storage software on each node.

This workflow saves time for platform teams. Engineers define the whole stack in one text file. When the stack runs, the cloud provider creates virtual machines and raw block disks. Next, the startup script installs the storage service and joins the nodes into a cluster. Apps running in containers can then claim fast, persistent volumes across zones.

How roles and data flow in cloudformation and portworx

To work well, both tools need clear permissions and network paths. The template engine runs first using an admin or deploy role. This role needs permission to create servers, security groups, block volumes, and machine roles. It sets up the base layer before any container apps start.

Next, the storage nodes start up and assume their own machine role. This node role is vital for daily operations. The storage software uses this role to talk to the cloud storage API. It attaches disks, takes snapshots, and moves volumes when a server fails. If a node dies, the software detaches the cloud disk and moves it to a healthy node.

Data flows on two distinct paths in this setup. Control traffic goes from the nodes to the cloud API over standard web ports. Storage traffic moves between nodes on private network ports inside the virtual network. The template must open these private ports in the security group so nodes can sync data.

Common failure modes and how to scope permissions

Many teams hit problems when they use broad roles or shared keys. Some engineers put static cloud keys right inside the startup script. Anyone who can read the template or server metadata can steal those keys. Other teams attach full admin roles to the compute nodes to make setup fast. If an attacker breaks into a container, they can abuse that node role.

Unlogged actions create another major risk. When every node shares one wide role, cloud logs look the same. Teams cannot tell if a human or an automated script deleted a volume. Static keys also fail when someone rotates them and forgets to update the template.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these issues by scoping roles and network paths. Never put static keys in template parameters or startup scripts. Instead, create a dedicated machine role inside the template with least privilege. Grant this role permission to manage only volumes that match a specific cluster tag. Block the role from deleting disks that belong to other teams.

You should also lock down the network rules in your template. Allow storage ports to accept traffic only from nodes in the same security group. Do not open storage management ports to the public internet. Route cloud API calls through private network endpoints so control traffic stays off public networks.

Managing day-two storage updates

Building the cluster is only the first step for platform teams. Over time, you will need to add nodes or upgrade disks. If you change the template without care, the cloud tool might replace running servers. Replacing a server by mistake can trigger long data rebuilds across the storage cluster.

To prevent data loss, set update rules in your stack template. Tell the template engine to update one server at a time. Wait for the storage node to rejoin the cluster before moving to the next server. You should also set a retain policy on the cloud block volumes. This rule keeps your raw disks safe even if someone deletes the stack by mistake.

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

Why do my storage nodes fail to join the cluster during stack creation?

This usually happens when security groups block private ports between the servers. Check your template to make sure nodes can talk to each other on all required ports. Also verify that the node role has permission to read cloud instance tags.

Should the template create the block disks or let the storage software do it?

Let the storage software create and attach its own cloud disks using its node role. If the template creates the disks, the storage tool cannot move them when a node fails. Grant the node role permission to create volumes on demand.

How do we prevent accidental data loss when someone deletes a stack?

Use tag rules and deletion policies to protect your storage volumes. Add a retention rule in the template for any shared cloud resources. When the storage software creates disks, make sure it tags them so admins know they hold live data.

The query runs. The emails stay hidden.