The Simplest Way to Make Ec2 Instances and JetBrains Space Work Like They Should
Teams link ec2 instances and jetbrains space to run builds and host remote code workspaces. This setup lets developers write, test, and ship apps on cloud servers from one place. JetBrains Space manages your source code, team chats, and build jobs. Amazon EC2 provides the virtual servers that run those heavy jobs and host your apps. When you pair them well, your team gets fast builds and clean server rules. When you pair them poorly, you end up with leaked keys and slow fixes. How ec2 instanc
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 link ec2 instances and jetbrains space to run builds and host remote code workspaces. This setup lets developers write, test, and ship apps on cloud servers from one place.
JetBrains Space manages your source code, team chats, and build jobs. Amazon EC2 provides the virtual servers that run those heavy jobs and host your apps. When you pair them well, your team gets fast builds and clean server rules. When you pair them poorly, you end up with leaked keys and slow fixes.
How ec2 instances and jetbrains space share roles and data
To make ec2 instances and jetbrains space work together, you must set up clear trust rules. Space needs permission to start, stop, or send work to your cloud servers. At the same time, your servers need permission to pull code from Space.
The best way to link them is through temporary cloud roles. Instead of saving long-term cloud keys inside Space, use identity federation. Space sends a signed token to your cloud account during a build job. Your cloud account checks the token and grants a short-term role to that job. This role lets the job launch a worker server or update a running app.
You can also run self-hosted Space workers on your own EC2 fleet. Each server starts up, registers with Space, and waits for a build job. Data flows over encrypted network paths between your cloud network and Space. When the build finishes, the server sends the test logs back to Space. Then you can shut the server down to save money.
Common failure modes and how to scope network paths
Many teams take shortcuts when they first link their code tools to cloud servers. The most common mistake is using one shared admin account for all build jobs. If a bad script runs in a test branch, it gets full cloud rights. Another common issue is leaving network ports open to the whole internet. Teams often open secure shell ports so Space can push files to servers.
Developers also copy personal keys onto worker servers to debug failed builds. Those keys stay on the disk and lack clear audit logs. If someone runs a bad command on the server, you cannot tell who did it. Plus, static keys inside project settings often leak in build logs.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix these gaps by scoping down every role and network path. Give each project in Space its own cloud role with tight limits. A frontend build role should never touch backend database servers. Keep your EC2 servers in private subnets with no public IP addresses. Let the worker agent reach out to Space over outbound HTTPS traffic only. This change removes the need to open inbound firewall ports on your servers.
Managing developer sessions and masking sensitive data
Even with good build jobs, engineers still need to inspect servers during an outage. They log in to check running processes, read app logs, or query local data. If everyone logs in with the same shared server key, your logs lose value. You see the shared user name in the system log, not the real person.
Map every server session to a real user identity from your team directory. Grant permissions only for the specific task and revoke them right after. You should also watch out for sensitive data in server outputs and databases. Data masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs in results. This step keeps private customer details out of developer screens and shared ticket logs.
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 should JetBrains Space log in to AWS without static keys?
Use OpenID Connect between JetBrains Space and your AWS account. Space trades a short token for a temporary cloud role during each job run.
Do I need public IP addresses on my EC2 build workers?
No, you can place your EC2 workers inside a private subnet. The worker agent makes an outbound connection to Space through a NAT device.
How do we audit who ran commands on an EC2 instance?
Stop sharing generic SSH keys across your engineering team. Tie every server login to your identity provider and record each command in central logs.
Related guides
In this post