aws-samples / aws-samples/serverless-patterns

New pattern submission - bedrock-prompt-management-lambda-sam

Aperta
#3,294 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1.8k
Fork
1.1k
Merge medio
7g 14h
PR unite (30g)
6

Descrizione

**Pattern name:** bedrock-prompt-management-lambda-sam

**Pull request:** https://github.com/aws-samples/serverless-patterns/pull/3293

**Description:**

Manage and version GenAI prompts with Amazon Bedrock Prompt Management. This pattern defines an Amazon Bedrock managed prompt and a published version as native CloudFormation resources (`AWS::Bedrock::Prompt` and `AWS::Bedrock::PromptVersion`), and invokes the prompt from AWS Lambda through the Bedrock Converse API. The prompt text lives in Bedrock rather than in the function, so the prompt can be updated or rolled back by publishing a new version and repointing the function, with no function code change.

**Services used:** Amazon Bedrock (Prompt Management, Converse API), AWS Lambda.

**Language:** Python 3.13
**Framework:** AWS SAM
**Level:** 200

Tested end to end in a live account: deployed with `sam build` and `sam deploy`, invoked the function to summarize input via the managed prompt, then published a new prompt version and repointed the function to confirm the output changes with no code change.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la pull request collegata https://github.com/aws-samples/serverless-patterns/pull/3293 e rivedi i relativi file di pattern AWS SAM. Esegui `sam build` e `sam deploy`, quindi invoca la Lambda e verifica che la pubblicazione di una nuova versione del prompt Bedrock modifichi l'output senza modificare il codice della funzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, python
Ambito
ai, backend, cloud
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.