The Simplest Way to Make AWS Sagemaker and JetBrains Space Work Like They Should
Teams use aws sagemaker and jetbrains space to write code and train machine learning models. JetBrains Space stores your code and runs pipelines that start model training jobs in AWS SageMaker. This workflow keeps source control, code review, and cloud model training in one clean loop. Data scientists push code to Space, and automated workers send training tasks to AWS. When you set this up well, teams ship models fast with clear audit trails. How aws sagemaker and jetbrains space share data
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 use aws sagemaker and jetbrains space to write code and train machine learning models. JetBrains Space stores your code and runs pipelines that start model training jobs in AWS SageMaker.
This workflow keeps source control, code review, and cloud model training in one clean loop. Data scientists push code to Space, and automated workers send training tasks to AWS. When you set this up well, teams ship models fast with clear audit trails.
How aws sagemaker and jetbrains space share data and roles
To link these two tools, you must set up identity trust and data flow rules. JetBrains Space hosts your Git repos, code reviews, and automation scripts. AWS SageMaker provides the compute power to train and deploy your machine learning models.
When a developer merges code in Space, an automation job wakes up to run tests. That job needs permission to talk to your AWS account and start a training run. The safest way to log in is through OpenID Connect federation between Space and AWS.
With federation, Space requests a short-lived token from AWS Identity and Access Management. The automation job assumes a specific AWS role for the length of that single task. No one has to type static AWS keys into the project settings.
Once the job logs in, it sends the training script location to AWS SageMaker. SageMaker pulls the training data from Amazon S3 buckets and starts the compute instances. When the training finishes, SageMaker writes the model artifacts back to S3 and sends status updates.
Common failure modes and how to scope roles
Many teams rush the setup and use one shared AWS user for all Space pipelines. They copy long-lived access keys into global project secrets so every script can use them. If a key leaks in a build log, an attacker can reach your cloud account.
Shared accounts also ruin your audit logs when something breaks in production. AWS CloudTrail will show that the shared automation user started a bad training job. You will not know which project or script triggered that specific run.
AWS IAM Policies + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad permissions create another big risk for machine learning teams. If the pipeline role has full S3 read rights, any test job can read raw data. That raw data might hold sensitive emails, phone numbers, card numbers, or national IDs. You should apply data masking to rewrite matched fields in results before training starts.
To fix these risks, give each Space project its own dedicated AWS IAM role. Scope each role so it can only start SageMaker jobs for one specific team. Restrict S3 bucket policies so the role only reads approved training folders.
You should also lock down the network path between your code runners and cloud resources. Run your SageMaker training containers inside a private Virtual Private Cloud with no public internet route. Use VPC endpoints so traffic to S3 and SageMaker stays inside the AWS network.
Managing interactive notebook sessions and audits
Automation handles scheduled runs, but engineers still need interactive sessions to debug models and check data. Developers often use JetBrains IDEs or notebooks to run tests against cloud resources. If every engineer uses local AWS keys on their laptop, tracking activity becomes very hard.
Teams should tie every interactive session to a single human identity from their identity provider. Each query and notebook check should leave a clear log showing who ran what action. Clear logs and tight role rules keep your machine learning workflow safe and easy to manage.
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 jobs log in to AWS SageMaker?
Use OpenID Connect federation so Space jobs assume a short-lived AWS IAM role. Avoid storing long-lived AWS access keys inside your project secret stores.
How do we stop one project from reading another team's training data?
Create separate AWS IAM roles for each Space project and lock down S3 bucket policies. Use resource tags in AWS to check that a role only touches its own SageMaker jobs.
How can we protect sensitive user data during model training?
Keep raw data in locked buckets and mask fields like emails, phone numbers, and card numbers. Only let SageMaker training roles read from cleaned buckets or views where masking rewrites matched fields.
Related guides
In this post