Build1 publisher3 min readPublished
Positron inherits its Athena and S3 access from the SageMaker Space execution role
Posit's IDE now ships as a custom SageMaker Studio image, and queries to Athena, Glue and S3 run on the Space role's permissions while Posit Assistant authenticates to Bedrock with the same environment credentials.
The Engineer · Build desk

What happened
- Positron, Posit's IDE for data science, now runs on Amazon SageMaker AI, where it queries Athena, the Glue Data Catalog and S3 under the Space execution role with no keys to store or rotate.
- Posit publishes a container image definition built on the SageMaker Distribution image, which administrators build, push to their own ECR repository, register with SageMaker AI and attach to a Studio domain.
- Posit Assistant can use Amazon Bedrock as its model provider, and AWS says no separate provider API key is needed when Bedrock authentication resolves through the environment's AWS credentials.
- In the captured run, Posit Assistant found a loan table in the Glue Data Catalog and prepared a read-only Athena query that returned five rows across six fields, scanned 2.18 MiB and finished in under a second.
- The Assistant's own session view priced that run at an estimated $6.319 with 92.5 percent cache efficiency, figures AWS says describe the session and are not an AWS invoice or a general cost benchmark.
Compiled by The EngineerSomething wrong?How this is made
Why it matters
- cost The setup work lands on whoever owns ECR and the Studio domain: the data scientist's install cost is zero only after an administrator has obtained the license grant, built the image and registered it.
- exposure The human and the coding assistant share one identity, so scoping the Space execution role is the only lever over what the AI can read, and a shared Space extends that same reach to every collaborator in it.
- constraint A team whose Studio domain sits in a Region without the Bedrock model it wants has no in-account Assistant path, because Posit Assistant resolves Bedrock in the domain's own Region.
- decision Anyone budgeting assistant usage has to measure their own session, since the published estimate rests on a cache hit rate and a model choice specific to that one run.
What replaces the stored key is a role policy. The Space runs under an execution role, the AWS SDKs in the container read those credentials from the environment, and a query issued from an R or Python session in Positron executes with whatever that role's policy allows [2]. Two things have to exist before the first row comes back: an execution role with access to Amazon Athena and the AWS Glue Data Catalog, and a configured Athena query-results location alongside the S3 source [7].
The adoption cost sits earlier in the chain. An organisation needs a Posit license grant and access to the Posit-published image definition, administrator permissions to manage ECR and configure custom images for the Studio domain, and an ml.t3.xlarge instance or larger for the environment AWS demonstrated [9]. Posit Assistant adds one more line to that list: Bedrock model access in the same AWS Region as the Studio domain [8]. On data handling, AWS says customer content is encrypted, is not used to improve base models and is not shared with model providers, and that private connectivity can be configured with AWS PrivateLink [13].
The session numbers describe one run on one model. Of the 6,657,942 tokens recorded, 6,118,411 were cache reads and 462,905 were cache writes, leaving 76,626 that touched neither side of the cache [6][1]. Against the Assistant's own estimate that works out to about $0.95 per million tokens [2], with cache reads outnumbering the uncached remainder by roughly 80 to 1 [3]. AWS says cache behaviour and pricing depend on the selected model and provider [10].
For that estimate to transfer, a team would need the same model on the same provider pricing and a session whose context is already warm. The stated 92.5 percent cache efficiency does not match either ratio the token counts support: cache reads are 91.9 percent of the recorded total, and 93.0 percent of cache reads plus cache writes [4]. The post does not show the denominator.
The demonstration is modest in scope. A synthetic 50,000-loan portfolio sits in S3 and is registered in the Glue Data Catalog, Athena queries it, R validates features, Python trains an XGBoost classifier, Shiny for Python invokes the real-time endpoint, and Quarto records the workflow; AWS says the data does not represent a production lending system [11].
One Space carried all of it. The project explorer, editor, R and Python sessions, Variables pane, plots, terminal and application preview ran in a single browser-based environment on SageMaker compute under the Space execution role [15]. Teams can also run several Spaces at once for independent projects [12] and reserve capacity with SageMaker AI training plans for scheduled training [14].
What to watch
- Whether Posit's Positron image becomes a built-in SageMaker image, removing the ECR build-and-register step for administrators.
- A published Bedrock cost figure for a cold session, where cache reads do not cover nine tokens in ten.
- Whether Posit Assistant gains a way to call a Bedrock model in a Region other than the Studio domain's.