This tutorial walks you through connecting Anaconda Platform to Amazon Bedrock so you can run text generation tasks from your workstations and Metaflow flows.By the end of this tutorial, you will have:
An IAM role that allows Anaconda Platform to interact with Bedrock
A workstation notebook that lists available models and runs text generation
AWS Bedrock requires an IAM role with permissions to invoke foundation models, and access to the models you want to use. For the full setup guide, see the AWS Bedrock getting started documentation.Create an IAM role with permissions to invoke Bedrock models. Request access to the foundation models you plan to use in the Bedrock console.
Chain the Bedrock role with the platform task role
To allow Anaconda Platform tasks to use your Bedrock role, register it as an integration in the platform:
Select Integrations in the left-hand navigation.
Click AWS in the Add an Integration section.
Enter a name for the integration.
Enter a description for the integration.
Enter the ARN of the IAM role you created.
If you need the ARN, expand the Getting your IAM role ARN section in the panel.This shows the trust policy statement you need to add to your role, and the tag key and value required for the platform to discover it. You can choose to use an existing target role or create a new one—the panel shows the required trust policy and tagging steps for either path.
Click Add.
After the integration is created, the How to use tab in the integration panel shows a code snippet with the exact role_arn value for your flows. Copy this snippet into your Metaflow steps to access Bedrock through the chained role.
The Bedrock tutorial content is in ~/learn/bedrock. If you prefer a different location, replace ~/learn with a directory of your choice.
This command downloads all tutorial content as a single bundle. If you’ve already worked through other tutorials, you likely already have this and do not need to run the command again.
Open the notebook in 00-nb from the ~/learn/bedrock directory. Before running it, update the role_arn variable with the IAM role you created earlier. This notebook walks you through listing available Bedrock models and running text generation tasks.
Open the 01-flow directory from the ~/learn/bedrock directory. This directory contains a Metaflow flow that invokes a Bedrock model. Before running it, update the MY_BEDROCK_ROLE variable in flow.py with the same role ARN you used in the notebook.Run the flow:
Explore other Bedrock model providers and capabilities.
Build more complex workflows combining Bedrock with other AWS services.
Integrate Bedrock into your existing ML pipelines.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anaconda","description":"Guides, tutorials, and reference material for Anaconda's Python, data science, and AI tools","colors":{"primary":"#1d6cf7","light":"#1d6cf7","dark":"#96f778"},"logo":{"light":"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/light.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=5996719b8530aaf065dc1ee1f39b2e67","dark":"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/dark.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=db482b1eac6af589d234160a76de3400","href":"https://www.anaconda.com/docs/main"},"favicon":"https://mintcdn.com/anaconda-29683c67/p8JNFuYYvTL8gfpM/favicon.png?fit=max\u0026auto=format\u0026n=p8JNFuYYvTL8gfpM\u0026q=85\u0026s=51a585758330bbe8f1ea032113854252","api":{"playground":{"display":"simple"}},"background":{"color":{"light":"#f4f5f8","dark":"#10121a"}},"navbar":{},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/anacondainc","github":"https://github.com/ContinuumIO","youtube":"https://www.youtube.com/c/ContinuumIo"},"links":[{"header":"Company","items":[{"label":"Anaconda Newsletter","href":"https://www.anaconda.com/newsletter"}]}]},"seo":{"metatags":{"canonical":"https://www.anaconda.com/docs"}},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"ga4":{"measurementId":"G-VQTY6YKM6J"},"heap":{"appId":"758475466"}},"contextual":{"options":["claude","chatgpt","perplexity","cursor","vscode","add-mcp","copy"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anaconda-29683c67","hasAudioNarration":false,"actualSubdomain":"anaconda-29683c67","customDomains":["anaconda.com"],"gitSource":{"type":"github","owner":"anaconda","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeccf8cc661c93862c28185","collectionId":"0c9f481a-ca94-4694-9a0b-b0e294c2661a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeccf8cc661c93862c28185"},"feedback":{"thumbs":true,"contextualFeedback":{"allowEmail":true,"emailDisclaimer":"Your email will only be used to follow up on this feedback."}},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee4d21425b90b39aa20edc","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Data Science \u0026 AI Workbench","count":240},{"language":"default","tag":"Anaconda Platform","count":151},{"language":"default","tag":"Package Security Manager","count":128},{"language":"default","tag":"Anaconda CLI","count":112},{"language":"default","tag":"Guides","count":105},{"language":"default","tag":"Anaconda CLI \u0026 MCP","count":104},{"language":"default","tag":"Plugins","count":93},{"language":"default","tag":"Commands","count":91},{"language":"default","tag":"Anaconda Desktop","count":86},{"language":"default","tag":"Platform Guides","count":86}],"searchSettings":{"isFiltersEnabled":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@anaconda.com"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","href":"/docs/_mintlify/custom/anaconda-29683c67/d510a3fe27570495/custom.css"}],"page":{"pagePath":"platform/tutorials/bedrock","slug":"/platform/tutorials/bedrock","pageMetadata":{"title":"Generate text with Amazon Bedrock","sidebarTitle":"Bedrock","searchDescription":"Configure Anaconda Platform to run text generation tasks with Amazon Bedrock from workstations and Metaflow tasks.","keywords":["platform","bedrock","aws","llm","tutorial"],"description":null,"href":"/platform/tutorials/bedrock"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Icon,Note,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This tutorial walks you through connecting Anaconda Platform to Amazon Bedrock so you can run text generation tasks from your workstations and Metaflow flows.`}),`\n`,_jsx(_components.p,{children:`By the end of this tutorial, you will have:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`An IAM role that allows Anaconda Platform to interact with Bedrock`}),`\n`,_jsx(_components.li,{children:`A workstation notebook that lists available models and runs text generation`}),`\n`,_jsx(_components.li,{children:`A Metaflow flow that invokes a Bedrock model`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-bedrock-resources`,children:`Create Bedrock resources`}),`\n`,_jsxs(_components.p,{children:[`AWS Bedrock requires an IAM role with permissions to invoke foundation models, and access to the models you want to use. For the full setup guide, see the `,_jsx(_components.a,{href:`https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started.html`,children:`AWS Bedrock getting started documentation`}),`.`]}),`\n`,_jsx(_components.p,{children:`Create an IAM role with permissions to invoke Bedrock models. Request access to the foundation models you plan to use in the Bedrock console.`}),`\n`,_jsx(Heading,{level:`2`,id:`chain-the-bedrock-role-with-the-platform-task-role`,children:`Chain the Bedrock role with the platform task role`}),`\n`,_jsx(_components.p,{children:`To allow Anaconda Platform tasks to use your Bedrock role, register it as an integration in the platform:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(Icon,{src:`/images/lucide/puzzle.svg`}),` `,_jsx(_components.strong,{children:`Integrations`}),` in the left-hand navigation.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`AWS`}),` in the `,_jsx(_components.strong,{children:`Add an Integration`}),` section.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Enter a name for the integration.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Enter a description for the integration.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Enter the ARN of the IAM role you created.`}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[`If you need the ARN, expand the `,_jsx(_components.strong,{children:`Getting your IAM role ARN`}),` section in the panel.`]}),_jsx(_components.p,{children:`This shows the trust policy statement you need to add to your role, and the tag key and value required for the platform to discover it. You can choose to use an existing target role or create a new one—the panel shows the required trust policy and tagging steps for either path.`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Add`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`After the integration is created, the `,_jsx(_components.strong,{children:`How to use`}),` tab in the integration panel shows a code snippet with the exact `,_jsx(_components.code,{children:`role_arn`}),` value for your flows. Copy this snippet into your Metaflow steps to access Bedrock through the chained role.`]}),`\n`,_jsx(Heading,{level:`2`,id:`download-the-tutorial-content`,children:`Download the tutorial content`}),`\n`,_jsx(_components.p,{children:`Download the tutorial content to your workstation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`outerbounds`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tutorials`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pull`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://outerbounds-journeys-content.s3.us-west-2.amazonaws.com/main/journeys.tar.gz`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --destination-dir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/learn`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The Bedrock tutorial content is in `,_jsx(_components.code,{children:`~/learn/bedrock`}),`. If you prefer a different location, replace `,_jsx(_components.code,{children:`~/learn`}),` with a directory of your choice.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`This command downloads all tutorial content as a single bundle. If you’ve already worked through other tutorials, you likely already have this and do not need to run the command again.`})}),`\n`,_jsx(Heading,{level:`2`,id:`generate-text-from-a-workstation-notebook`,children:`Generate text from a workstation notebook`}),`\n`,_jsxs(_components.p,{children:[`Open the notebook in `,_jsx(_components.code,{children:`00-nb`}),` from the `,_jsx(_components.code,{children:`~/learn/bedrock`}),` directory. Before running it, update the `,_jsx(_components.code,{children:`role_arn`}),` variable with the IAM role you created earlier. This notebook walks you through listing available Bedrock models and running text generation tasks.`]}),`\n`,_jsx(Heading,{level:`2`,id:`generate-text-from-a-metaflow-flow`,children:`Generate text from a Metaflow flow`}),`\n`,_jsxs(_components.p,{children:[`Open the `,_jsx(_components.code,{children:`01-flow`}),` directory from the `,_jsx(_components.code,{children:`~/learn/bedrock`}),` directory. This directory contains a Metaflow flow that invokes a Bedrock model. Before running it, update the `,_jsx(_components.code,{children:`MY_BEDROCK_ROLE`}),` variable in `,_jsx(_components.code,{children:`flow.py`}),` with the same role ARN you used in the notebook.`]}),`\n`,_jsx(_components.p,{children:`Run the flow:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` flow.py`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --with`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` kubernetes`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsx(_components.p,{children:`To build on this tutorial:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Explore other Bedrock model providers and capabilities.`}),`\n`,_jsx(_components.li,{children:`Build more complex workflows combining Bedrock with other AWS services.`}),`\n`,_jsx(_components.li,{children:`Integrate Bedrock into your existing ML pipelines.`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate text with Amazon Bedrock","sidebarTitle":"Bedrock","searchDescription":"Configure Anaconda Platform to run text generation tasks with Amazon Bedrock from workstations and Metaflow tasks.","keywords":["platform","bedrock","aws","llm","tutorial"],"description":null,"href":"/platform/tutorials/bedrock"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create Bedrock resources","slug":"create-bedrock-resources","depth":2,"children":[]},{"title":"Chain the Bedrock role with the platform task role","slug":"chain-the-bedrock-role-with-the-platform-task-role","depth":2,"children":[]},{"title":"Download the tutorial content","slug":"download-the-tutorial-content","depth":2,"children":[]},{"title":"Generate text from a workstation notebook","slug":"generate-text-from-a-workstation-notebook","depth":2,"children":[]},{"title":"Generate text from a Metaflow flow","slug":"generate-text-from-a-metaflow-flow","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/anaconda-29683c67/b738e1eb47e9934c/_transcend.js","/docs/_mintlify/custom/anaconda-29683c67/3ca111da84ffed5d/docs-dropdown-tooltip.js","/docs/_mintlify/custom/anaconda-29683c67/a3d1c2dd97aa6593/toc-indicator.js"],"subdomain":"anaconda-29683c67","siteName":"Anaconda","title":"Generate text with Amazon Bedrock - Anaconda","contextualStarterQuestions":[{"_id":"6aee4704767a2a364208561f","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"What IAM permissions do I need?","status":"active","generatedBy":"contextual","path":"platform/tutorials/bedrock","createdAt":"2026-11-06T21:30:44.766Z","updatedAt":"2026-11-06T21:30:44.766Z","__v":0},{"_id":"6aee4704767a2a3642085620","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"How do I use Bedrock in Metaflow?","status":"active","generatedBy":"contextual","path":"platform/tutorials/bedrock","createdAt":"2026-11-06T21:30:44.766Z","updatedAt":"2026-11-06T21:30:44.766Z","__v":0},{"_id":"6aee4704767a2a364208561e","deploymentId":"6781700c5f1e7d2ac00fcc4a","questionText":"How do I set up Bedrock access?","status":"active","generatedBy":"contextual","path":"platform/tutorials/bedrock","createdAt":"2026-11-06T21:30:44.766Z","updatedAt":"2026-11-06T21:30:44.766Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T21:28:02.944Z","originalFileLocation":"platform/tutorials/bedrock.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Anaconda\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate text with Amazon Bedrock - Anaconda\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anaconda\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.anaconda.com/docs/platform/tutorials/bedrock\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anaconda-29683c67.mintlify.site/docs/_mintlify/api/og/v2?division=End-to-End+Tutorials\u0026amp;title=Generate+text+with+Amazon+Bedrock\u0026amp;theme=a631e829865976b88c6af112\u0026amp;signature=54dbb0dc60324f80866f62cf9a6563e2cd2885a6f2b841b4a3e936b1db8dade6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generate text with Amazon Bedrock - Anaconda\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anaconda-29683c67.mintlify.site/docs/_mintlify/api/og/v2?division=End-to-End+Tutorials\u0026amp;title=Generate+text+with+Amazon+Bedrock\u0026amp;theme=a631e829865976b88c6af112\u0026amp;signature=54dbb0dc60324f80866f62cf9a6563e2cd2885a6f2b841b4a3e936b1db8dade6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/anaconda-29683c67/Q6mS5k5M0lNdBscF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anaconda\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d6cf7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.anaconda.com/docs/platform/tutorials/bedrock\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/platform/tutorials/bedrock.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.anaconda.com/#organization\",\"name\":\"Anaconda\",\"url\":\"https://www.anaconda.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anaconda-29683c67/s-9WR15r5rZoaPqb/logo/light.svg?fit=max\u0026auto=format\u0026n=s-9WR15r5rZoaPqb\u0026q=85\u0026s=5996719b8530aaf065dc1ee1f39b2e67\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.anaconda.com/docs#website\",\"name\":\"Anaconda\",\"url\":\"https://www.anaconda.com/docs\",\"publisher\":{\"@id\":\"https://www.anaconda.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock#webpage\",\"url\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock\",\"name\":\"Generate text with Amazon Bedrock\",\"dateModified\":\"2026-11-06T21:28:02.944Z\",\"isPartOf\":{\"@id\":\"https://www.anaconda.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"End-to-End Tutorials\",\"item\":\"https://www.anaconda.com/docs/platform/tutorials/xgboost\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate text with Amazon Bedrock\",\"item\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock#article\",\"headline\":\"Generate text with Amazon Bedrock\",\"name\":\"Generate text with Amazon Bedrock\",\"url\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock\",\"mainEntityOfPage\":{\"@id\":\"https://www.anaconda.com/docs/platform/tutorials/bedrock#webpage\"},\"dateModified\":\"2026-11-06T21:28:02.944Z\",\"keywords\":\"platform, bedrock, aws, llm, tutorial\",\"publisher\":{\"@id\":\"https://www.anaconda.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.anaconda.com/docs#website\"}}]}\u003c/script>","siteName":"Anaconda","nav":{"global":null,"products":[{"product":"Anaconda Docs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/anaconda-29683c67/images/anaconda-icon.svg","pages":[{"title":"Anaconda Docs","href":"/main"}]},{"product":"Getting Started","icon":"rocket-launch","pages":[{"title":"Getting Started","href":"/getting-started/main"}]},{"product":"Anaconda.org","icon":"globe","pages":[{"title":"Anaconda.org","href":"/anaconda-org/key-features"}]},{"product":"Anaconda Desktop","icon":"desktop","pages":[{"title":"Anaconda Desktop","href":"/anaconda-desktop/key-features"}]},{"product":"Package Security Manager","icon":"shield-check","versions":[{"version":"6.8.0"},{"version":"6.7.2"},{"version":"6.7.1"},{"version":"6.7.0"},{"version":"6.6.5"},{"version":"6.6.4"},{"version":"6.6.3"},{"version":"6.6.2"},{"version":"6.6.1"},{"version":"6.6.0"},{"version":"6.5.3"},{"version":"6.5.2"},{"version":"6.5.1"},{"version":"6.4.0"},{"version":"6.3.1"},{"version":"6.3.0"},{"version":"6.2.0"},{"version":"6.1.9"},{"version":"6.1.8"},{"version":"6.1.7"},{"version":"6.1.6"},{"version":"6.1.4"}],"pages":[{"title":"Package Security Manager","href":"/anaconda-platform/main"}]},{"product":"Anaconda Platform","icon":"layer-group","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/platform/main"}]},{"tab":"Tutorials","groups":[{"group":"End-to-End Tutorials","pages":[{"title":"Build a batch inference pipeline with XGBoost","sidebarTitle":"XGBoost batch inference","href":"/platform/tutorials/xgboost"},{"title":"Compare LLM approaches for text classification","sidebarTitle":"LLM comparison","href":"/platform/tutorials/llm"},{"title":"Training models that recover from interruptions","sidebarTitle":"Fault-tolerant training","href":"/platform/tutorials/fault-tolerant-training"},{"title":"Configure an IAM role","sidebarTitle":"Configure an IAM role","description":null,"href":"/platform/tutorials/iam-role"},{"title":"Generate text with Amazon Bedrock","sidebarTitle":"Bedrock","href":"/platform/tutorials/bedrock"},{"title":"Query data with Amazon Athena","sidebarTitle":"Athena","description":null,"href":"/platform/tutorials/athena"},{"title":"Train and deploy models with Amazon SageMaker","sidebarTitle":"SageMaker","href":"/platform/tutorials/sagemaker"},{"title":"Access an existing Snowflake data warehouse","sidebarTitle":"Access an existing Snowflake warehouse","href":"/platform/tutorials/snowflake-existing-warehouse"},{"title":"Set up a Snowflake data warehouse","sidebarTitle":"Set up a Snowflake warehouse","href":"/platform/tutorials/snowflake-setup-warehouse"},{"title":"Deploy flows per branch from GitHub Actions","sidebarTitle":"Branch deployments with GitHub Actions","href":"/platform/tutorials/github-actions-branch-deployments"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/platform/cli"}]}]},{"product":"Data Science \u0026 AI Workbench","icon":"chart-network","versions":[{"version":"5.9.0"},{"version":"5.8.1"},{"version":"5.8.0"},{"version":"5.7.1"},{"version":"5.7.0"},{"version":"5.6.2"},{"version":"5.6.1"},{"version":"5.6.0"},{"version":"5.5.2"},{"version":"5.5.1"}],"pages":[{"title":"Data Science \u0026 AI Workbench","href":"/data-science/latest/main"}]},{"product":"Anaconda CLI \u0026 MCP","icon":"terminal","pages":[{"title":"Anaconda CLI \u0026 MCP","href":"/cli-reference/anaconda-cli/getting-started"}]},{"product":"Legacy applications","icon":"window-restore","pages":[{"title":"Legacy applications","href":"/legacy/anaconda-navigator/main"}]},{"product":"Reference","icon":"book","pages":[{"title":"Reference","href":"/reference/release-notes"}]},{"product":"Support \u0026 Troubleshooting","icon":"headset","pages":[{"title":"Support \u0026 Troubleshooting","href":"/reference/help-support"}]},{"product":"Repository Managers","hidden":true,"pages":[{"title":"Repository Managers","href":"/repo-managers/main"}]}]},"basePath":"","title":"Generate text with Amazon Bedrock - Anaconda","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":[],"chunks":[]}