Coder Social home page Coder Social logo

jelly207 / amazon-bedrock-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-bedrock-samples

0.0 0.0 0.0 103.56 MB

This repository contains examples for customers to get started using the Amazon Bedrock Service. This contains examples for all availble foundational models

Home Page: https://aws.amazon.com/bedrock/

License: MIT No Attribution

Shell 0.01% JavaScript 0.04% Python 1.57% Java 0.04% TypeScript 0.50% Makefile 0.03% Batchfile 0.01% Jupyter Notebook 97.81% Dockerfile 0.01%

amazon-bedrock-samples's Introduction

Amazon Bedrock Samples

This repository contains pre-built examples to help customers get started with the Amazon Bedrock service.

Contents

Getting Started

To get started with the code examples, ensure you have access to Amazon Bedrock. Then clone this repo and navigate to one of the folders above. Detailed instructions are provided in each folder's README.

Enable AWS IAM permissions for Bedrock

The AWS identity you assume from your environment (which is the Studio/notebook Execution Role from SageMaker, or could be a role or IAM User for self-managed notebooks or other use-cases), must have sufficient AWS IAM permissions to call the Amazon Bedrock service.

To grant Bedrock access to your identity, you can:

  • Open the AWS IAM Console
  • Find your Role (if using SageMaker or otherwise assuming an IAM Role), or else User
  • Select Add Permissions > Create Inline Policy to attach new inline permissions, open the JSON editor and paste in the below example policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "BedrockFullAccess",
            "Effect": "Allow",
            "Action": ["bedrock:*"],
            "Resource": "*"
        }
    ]
}

โš ๏ธ Note: With Amazon SageMaker, your notebook execution role will typically be separate from the user or role that you log in to the AWS Console with. If you'd like to explore the AWS Console for Amazon Bedrock, you'll need to grant permissions to your Console user/role too.

For more information on the fine-grained action and resource permissions in Bedrock, check out the Bedrock Developer Guide.

Contributing

We welcome community contributions! Please see CONTRIBUTING.md for guidelines.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-bedrock-samples's People

Contributors

rppth avatar aarora79 avatar celmore25 avatar cfregly avatar jld23 avatar jsgsamzn avatar maxtybar avatar rstrahan avatar madhurprash avatar mttanke avatar brunopistone avatar amazon-auto avatar windson avatar samarthmadduru avatar tchattha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.