The Simplest Way to Make AWS Sagemaker and Port Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing aws sagemaker and port lets teams run machine learning jobs from one portal. Port shows a simple catalog while AWS SageMaker runs training jobs and hosts models. Data scientists often waste hours asking platform engineers for cloud permissions. Platform teams also struggle to track which model endpoints are live. Connecting these two tools solves both problems for your engineering team. Developers trigger model training or deploy endpoints through self-service forms in Port. Port then c

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.

Pairing aws sagemaker and port lets teams run machine learning jobs from one portal. Port shows a simple catalog while AWS SageMaker runs training jobs and hosts models.

Data scientists often waste hours asking platform engineers for cloud permissions. Platform teams also struggle to track which model endpoints are live. Connecting these two tools solves both problems for your engineering team. Developers trigger model training or deploy endpoints through self-service forms in Port. Port then calls your backend automation to start the right cloud work.

How aws sagemaker and port share data and roles

The link between aws sagemaker and port relies on two main flows. First, Port reads metadata from your cloud account to build a software catalog. Second, Port sends action requests when a user clicks a button in the UI.

To fill the catalog, an exporter or pipeline script queries the AWS API. This script reads lists of training jobs, model packages, and live endpoints. It then writes those records into Port as catalog entities. Each entity shows the model owner, run status, and cloud region. Engineers check one screen to see every active model across the company.

For self-service actions, Port does not need direct write keys to your cloud. Instead, Port sends a webhook payload to a runner or CI pipeline. That runner assumes an AWS IAM role with scoped permissions. The role starts the training job or updates the model endpoint. When the job finishes, the runner sends the new status back to Port. This setup keeps long-lived cloud keys out of the portal.

Common failure modes and how to scope roles

Many teams make mistakes when they first link their portal to cloud services. The biggest mistake is using one shared IAM user with broad admin rights. If a runner uses an admin key, any portal action can alter anything. A bad form input could delete a production endpoint or read private buckets. Static keys also create audit gaps when many people trigger jobs.

You can fix this by splitting roles by task and environment. Give the catalog reader role read-only permissions for model and endpoint metadata. Never let the reader role read raw training data in storage buckets. For write actions, use temporary role assumption through OpenID Connect. Map each Port action to a distinct IAM role with narrow rights. A training action should only start jobs on approved instance types. A deploy action should only update endpoints in the target stage.

AWS IAM Policies + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another failure mode is missing audit logs for data and model changes. When Port triggers a job, cloud logs only show the shared runner role. They do not show which user clicked the button in the portal. Always pass the portal user email and request ID in job tags. This links the cloud event back to the human who asked for it.

Keeping data safe during model operations

Machine learning workflows often touch sensitive customer records during training and testing. Engineers might inspect data samples or query live endpoints to fix bugs. If raw production data flows into test notebooks, you risk a leak. Sensitive fields like emails, phone numbers, card numbers, and national IDs need protection.

Set up strict network rules around your notebook instances and training containers. Keep compute nodes in private subnets without direct internet routes. Use data masking to rewrite matched fields in results before users inspect records. Also require peer approval in Port before anyone deploys a model to production. Clear rules keep your cloud bill predictable and your customer data safe.

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

Does Port need direct write permissions to my AWS account?

No, Port does not need direct write keys to your cloud account. You can send webhook events to your own runner in your network. That runner uses a scoped IAM role to run the cloud task.

How do we track who started a training job from Port?

Pass the user identity from the Port action payload into your runner script. Have the script attach that user email as an AWS resource tag. You can then check cloud logs and billing reports by user.

What happens if a model deployment fails in AWS SageMaker?

Your runner script checks the cloud job status while the task runs. If the cloud API returns an error, the script reports a failed run. Developers see the error message right inside the portal action log.

The query runs. The emails stay hidden.