|
16 | 16 | "The model that Amazon Q utilizes has been supplemented with the high-quality AWS content, allowing users to ask questions\n", |
17 | 17 | "about AWS architecture, AWS resources, best practices, documentation, and support. \n", |
18 | 18 | "\n", |
19 | | - "**Note:** In this tutorial, we will be running the **free tier of Amazon Q Developer**. You will not incur charges for the first 50 interactions with the chatbot each month. To understand the pricing plan of Amazon Q, please refer to the information found in this [link](https://aws.amazon.com/q/developer/pricing/).\n", |
| 19 | + "In this tutorial, we will be running the **free tier of Amazon Q Developer**. You will not incur charges for the first 50 interactions with the chatbot each month. To understand the pricing plan of Amazon Q, please refer to the information found in this [link](https://aws.amazon.com/q/developer/pricing/).\n", |
20 | 20 | "\n", |
21 | 21 | "## Learning Objectives\n", |
22 | 22 | "\n", |
|
27 | 27 | "\n", |
28 | 28 | "## Prerequisites\n", |
29 | 29 | "\n", |
30 | | - "To complete this tutorial, you will need access to an Integrated Development Environment (IDE) popular options include SageMaker AI Studio, VSCode, and JupyterLab. Note that installation steps and certain features of Amazon Q Developer may vary across different IDEs. For instance, if you choose to install Amazon Q Developer locally through VSCode you will be required to create an AWS Builder ID profile which includes creating a username and password. To learn more about AWS Builder ID visit the following link [here](https://docs.aws.amazon.com/signin/latest/userguide/create-aws_builder_id.html). \n", |
31 | | - "\n", |
32 | | - "For this tutorial we used SageMaker AI Studio and added the following role policy:" |
| 30 | + "To complete this tutorial, you will need access to an Integrated Development Environment (IDE) popular options include SageMaker AI Studio, VSCode, and JupyterLab. Note that installation steps, pricing, and certain features of Amazon Q Developer may vary across different IDEs and pricing tiers. While we are using the free tier, check out the comparison below to understand the differences in requirements between using the free tier in SageMaker AI, running workflows locally, and utilizing the pro tier.\n", |
| 31 | + "\n", |
| 32 | + "**Amazon Q Developer Free Tier**\n", |
| 33 | + "- SageMaker AI\n", |
| 34 | + " - Requires an AWS account\n", |
| 35 | + " - Supported IDEs include Jupyter Lab and Code Editor\n", |
| 36 | + " - Will need to add the following role policy:\n", |
| 37 | + "\n", |
| 38 | + " ```JSON\n", |
| 39 | + " {\n", |
| 40 | + " \"Effect\": \"Allow\",\n", |
| 41 | + " \"Action\": [\n", |
| 42 | + " \"q:SendMessage\"\n", |
| 43 | + " ],\n", |
| 44 | + " \"Resource\": [\n", |
| 45 | + " \"*\"\n", |
| 46 | + " ]\n", |
| 47 | + " }\n", |
| 48 | + " {\n", |
| 49 | + " \"Sid\": \"AmazonQDeveloperPermissions\",\n", |
| 50 | + " \"Effect\": \"Allow\",\n", |
| 51 | + " \"Action\": [\n", |
| 52 | + " \"codewhisperer:GenerateRecommendations\"\n", |
| 53 | + " ],\n", |
| 54 | + " \"Resource\": \"*\"\n", |
| 55 | + " }\n", |
| 56 | + " ```\n", |
| 57 | + "\n", |
| 58 | + "- Local IDE\n", |
| 59 | + " - AWS account is not required \n", |
| 60 | + " - Required to create an AWS Builder ID profile which includes creating a username and password. \n", |
| 61 | + " - To learn more visit the following link [here](https://docs.aws.amazon.com/signin/latest/userguide/create-aws_builder_id.html).\n", |
| 62 | + " - Supported IDEs include VS Code, Visual Studio and JetBrains\n" |
33 | 63 | ] |
34 | 64 | }, |
35 | 65 | { |
36 | 66 | "cell_type": "markdown", |
37 | 67 | "metadata": {}, |
38 | 68 | "source": [ |
39 | | - "```JSON\n", |
40 | | - "{\n", |
41 | | - "\t\"Effect\": \"Allow\",\n", |
42 | | - "\t\"Action\": [\n", |
43 | | - "\t\t\"q:SendMessage\"\n", |
44 | | - "\t],\n", |
45 | | - "\t\"Resource\": [\n", |
46 | | - "\t\t\"*\"\n", |
47 | | - "\t]\n", |
48 | | - "}\n", |
49 | | - "{\n", |
50 | | - "\t\"Sid\": \"AmazonQDeveloperPermissions\",\n", |
51 | | - "\t\"Effect\": \"Allow\",\n", |
52 | | - "\t\"Action\": [\n", |
53 | | - "\t\t\"codewhisperer:GenerateRecommendations\"\n", |
54 | | - "\t],\n", |
55 | | - "\t\"Resource\": \"*\"\n", |
56 | | - "}\n", |
57 | | - "```\n", |
58 | | - " " |
| 69 | + "**Amazon Q Developer Pro Tier**\n", |
| 70 | + "- Requires AWS account as a prerequisite \n", |
| 71 | + "- Needed integration with IAM Identity Center (IDC) requiring **adminstator approval** \n", |
| 72 | + "- Costs $19/mo per user" |
59 | 73 | ] |
60 | 74 | }, |
61 | 75 | { |
|
111 | 125 | { |
112 | 126 | "cell_type": "code", |
113 | 127 | "execution_count": null, |
114 | | - "metadata": { |
115 | | - "vscode": { |
116 | | - "languageId": "plaintext" |
117 | | - } |
118 | | - }, |
| 128 | + "metadata": {}, |
119 | 129 | "outputs": [], |
120 | 130 | "source": [ |
121 | 131 | "import pandas as pd\n", |
|
168 | 178 | { |
169 | 179 | "cell_type": "code", |
170 | 180 | "execution_count": null, |
171 | | - "metadata": { |
172 | | - "vscode": { |
173 | | - "languageId": "plaintext" |
174 | | - } |
175 | | - }, |
| 181 | + "metadata": {}, |
176 | 182 | "outputs": [], |
177 | 183 | "source": [ |
178 | 184 | "#Cell 1\n", |
|
205 | 211 | { |
206 | 212 | "cell_type": "code", |
207 | 213 | "execution_count": null, |
208 | | - "metadata": { |
209 | | - "vscode": { |
210 | | - "languageId": "plaintext" |
211 | | - } |
212 | | - }, |
| 214 | + "metadata": {}, |
213 | 215 | "outputs": [], |
214 | 216 | "source": [ |
215 | 217 | "# Error debugging test /fix\n", |
|
239 | 241 | { |
240 | 242 | "cell_type": "code", |
241 | 243 | "execution_count": null, |
242 | | - "metadata": { |
243 | | - "vscode": { |
244 | | - "languageId": "plaintext" |
245 | | - } |
246 | | - }, |
| 244 | + "metadata": {}, |
247 | 245 | "outputs": [], |
248 | 246 | "source": [ |
249 | 247 | "#Cell 2\n", |
|
268 | 266 | { |
269 | 267 | "cell_type": "code", |
270 | 268 | "execution_count": null, |
271 | | - "metadata": { |
272 | | - "vscode": { |
273 | | - "languageId": "plaintext" |
274 | | - } |
275 | | - }, |
| 269 | + "metadata": {}, |
276 | 270 | "outputs": [], |
277 | 271 | "source": [ |
278 | 272 | "Cell 3\n", |
|
538 | 532 | } |
539 | 533 | ], |
540 | 534 | "metadata": { |
| 535 | + "kernelspec": { |
| 536 | + "display_name": "base", |
| 537 | + "language": "python", |
| 538 | + "name": "python3" |
| 539 | + }, |
541 | 540 | "language_info": { |
542 | | - "name": "python" |
| 541 | + "name": "python", |
| 542 | + "version": "3.11.7" |
543 | 543 | } |
544 | 544 | }, |
545 | 545 | "nbformat": 4, |
|
0 commit comments