239 lines
11 KiB
Markdown
239 lines
11 KiB
Markdown
|
|
# BUILD-B1: Anthropic Use Case Details — Steg-för-steg-guide
|
|||
|
|
|
|||
|
|
> **Uppdaterad:** 2026-06-06 | **Källor:** AWS officiell dokumentation (docs.aws.amazon.com), AWS Security Blog (okt 2025), Claude Code Docs (code.claude.com/docs/en/amazon-bedrock)
|
|||
|
|
>
|
|||
|
|
> **Syfte:** Lås upp Anthropic Claude-modeller (Sonnet/Opus) i AWS Bedrock för AAMOS poliskontroll/domare-funktion.
|
|||
|
|
> **Konto:** 155407238699 | **Region:** eu-north-1
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## ⚡ TL;DR — Gör detta på under 2 minuter
|
|||
|
|
|
|||
|
|
1. Öppna → https://eu-north-1.console.aws.amazon.com/bedrock/home?region=eu-north-1#/modelcatalog
|
|||
|
|
2. Klicka på valfri Anthropic-modell (t.ex. **Claude Sonnet 4**)
|
|||
|
|
3. Klicka **"Submit use case details"** (knapp visas för Anthropic-modeller)
|
|||
|
|
4. Fyll i formuläret med texten nedan
|
|||
|
|
5. Klicka **Submit** → **Tillgång beviljas OMEDELBART**
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Bakgrund — Vad är detta?
|
|||
|
|
|
|||
|
|
Anthropic kräver ett "First Time Use" (FTU)-formulär **en enda gång per AWS-konto** (eller per AWS Organization management account). Det är Anthropics eget krav, inte AWS generella model-access. Sedan 2025 har AWS förenklar modelltillgång generellt — men Anthropic-modeller behåller fortfarande detta enstaka FTU-formulär.
|
|||
|
|
|
|||
|
|
> ✅ **VERIFIERAT (AWS docs, 2025-10):** "Anthropic requires first-time customers to submit use case details before invoking a model once per account or once at the organization's management account. Access to the model is granted immediately after use case details are successfully submitted."
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Förutsättningar
|
|||
|
|
|
|||
|
|
### IAM-behörigheter (vem som kan fylla i formuläret)
|
|||
|
|
|
|||
|
|
Den IAM-användare/roll som ska fylla i formuläret behöver:
|
|||
|
|
|
|||
|
|
| Permission | Varför |
|
|||
|
|
|---|---|
|
|||
|
|
| `bedrock:PutUseCaseForModelAccess` | Skicka FTU-formuläret (konsolens "Submit use case details") |
|
|||
|
|
| `bedrock:GetUseCaseForModelAccess` | Läsa befintlig formulärstatus |
|
|||
|
|
| `aws-marketplace:Subscribe` | Auto-prenumeration på Anthropic-modeller |
|
|||
|
|
| `aws-marketplace:ViewSubscriptions` | Se prenumerationsstatus |
|
|||
|
|
|
|||
|
|
> **Enklast:** Använd IAM-rollen/användaren med `AmazonBedrockFullAccess` managed policy — den täcker allt ovan.
|
|||
|
|
|
|||
|
|
> **OBS om AWS Organizations:** Om kontot 155407238699 är ett member account under en organization — fyll i formuläret från **management account** istället. Godkännandet ärver till alla child-konton automatiskt (men BARA om det görs via API/management account).
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Steg-för-steg (AWS Console — rekommenderad väg)
|
|||
|
|
|
|||
|
|
### Metod A: Via Model Catalog (nuvarande UI, 2025–2026)
|
|||
|
|
|
|||
|
|
**Steg 1 — Öppna Bedrock Console i rätt region**
|
|||
|
|
```
|
|||
|
|
https://eu-north-1.console.aws.amazon.com/bedrock/home?region=eu-north-1#/modelcatalog
|
|||
|
|
```
|
|||
|
|
> ⚠️ Kontrollera att du är inloggad på konto 155407238699 och att region är **eu-north-1 (Stockholm)**.
|
|||
|
|
|
|||
|
|
**Steg 2 — Välj en Anthropic-modell**
|
|||
|
|
- Sök efter "Claude" i modellkatalogen
|
|||
|
|
- Klicka på t.ex. **"Claude Sonnet 4"** (`eu.anthropic.claude-sonnet-4-5` eller liknande)
|
|||
|
|
- Alternativt: Claude Opus 4
|
|||
|
|
|
|||
|
|
**Steg 3 — Klicka "Submit use case details"**
|
|||
|
|
- På modellens detaljsida visas en blå knapp: **"Submit use case details"**
|
|||
|
|
- Klicka på den
|
|||
|
|
|
|||
|
|
> **Alternativ väg (äldre UI):** Vänster navigationspanel → "Bedrock configurations" → "Model access" → "Modify model access" → "Submit use case details"
|
|||
|
|
|
|||
|
|
**Steg 4 — Fyll i formuläret**
|
|||
|
|
|
|||
|
|
Se ifyllnadstexten nedan. Formuläret har dessa fält:
|
|||
|
|
|
|||
|
|
| Fält | Typ | Värde att skriva in |
|
|||
|
|
|---|---|---|
|
|||
|
|
| **Company name** | Text (max 128 tecken) | `Wavult` |
|
|||
|
|
| **Company website** | URL (max 128 tecken) | `https://wavult.com` (eller er faktiska domän) |
|
|||
|
|
| **Industry** | Dropdown | `Technology` eller `Software` |
|
|||
|
|
| **Other industry** | Text (om "Other" valdes) | *(lämna tomt om Industry-dropdown räckte)* |
|
|||
|
|
| **Intended users** | Dropdown/Radio | `Internal` (= 0 i API) |
|
|||
|
|
| **Use cases** | Fritext (max 8192 tecken) | Se färdig text nedan |
|
|||
|
|
|
|||
|
|
**Steg 5 — Klicka Submit**
|
|||
|
|
- Klicka **"Submit form"** / **"Submit"**
|
|||
|
|
- Vänta på bekräftelse: **"Access granted"** eller status ändras till **"Available"**
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Färdig ifyllnadstext (klistra in direkt)
|
|||
|
|
|
|||
|
|
### Fält: Company name
|
|||
|
|
```
|
|||
|
|
Wavult
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### Fält: Company website
|
|||
|
|
```
|
|||
|
|
https://wavult.com
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
### Fält: Industry (välj i dropdown)
|
|||
|
|
```
|
|||
|
|
Technology
|
|||
|
|
```
|
|||
|
|
*(Om "Technology" inte finns: välj "Software" eller "Information Technology")*
|
|||
|
|
|
|||
|
|
### Fält: Intended users
|
|||
|
|
```
|
|||
|
|
Internal
|
|||
|
|
```
|
|||
|
|
*(Interna användare = ingen extern exponering av modellen)*
|
|||
|
|
|
|||
|
|
### Fält: Use cases — KLISTRA IN DETTA:
|
|||
|
|
|
|||
|
|
```
|
|||
|
|
We are building AAMOS (Autonomous AI Model Operations System), an internal enterprise platform for AI governance, model assurance, and red-teaming at scale.
|
|||
|
|
|
|||
|
|
Primary use case: Claude (Sonnet/Opus) is used as an internal "police control" judge model — a quality and safety arbiter that evaluates outputs from other AI models in automated pipelines. Specifically, Claude assesses whether AI-generated content meets our enterprise quality, safety, and compliance standards before outputs are acted upon or escalated.
|
|||
|
|
|
|||
|
|
Core functions:
|
|||
|
|
1. Automated output evaluation: Claude reviews and scores responses from other LLMs for accuracy, policy compliance, and safety.
|
|||
|
|
2. Red-teaming and adversarial testing: Claude is used to systematically probe and test other models for failure modes, biases, and safety vulnerabilities in controlled internal environments.
|
|||
|
|
3. AI governance audit: Claude generates structured assessment reports used by our AI safety team for governance reviews and model certification decisions.
|
|||
|
|
4. Multi-model consensus verification: Claude serves as a tiebreaker/arbiter in disagreements between multiple AI judges, improving decision quality in automated review pipelines.
|
|||
|
|
|
|||
|
|
All usage is strictly internal. No Claude outputs are exposed to external end users. Data processed by Claude consists of internal AI-generated text, test scenarios, and synthetic evaluation datasets — no sensitive personal data.
|
|||
|
|
|
|||
|
|
Industry: Enterprise AI safety and governance tooling (internal).
|
|||
|
|
Organization type: Technology company building internal AI assurance infrastructure.
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Tidsförväntan
|
|||
|
|
|
|||
|
|
| Steg | Tid |
|
|||
|
|
|---|---|
|
|||
|
|
| Formuläret fylls i | ~1 min |
|
|||
|
|
| Godkännande sker | **OMEDELBART** (automatiskt) |
|
|||
|
|
| Modeller tillgängliga via API | Direkt efter submit, ev. upp till 2 min propagation |
|
|||
|
|
| Manuell review krävs? | **Nej** — godkänns automatiskt för kommersiella konton |
|
|||
|
|
|
|||
|
|
> ✅ **VERIFIERAT:** "Access to the model is granted immediately after use case details are successfully submitted." (AWS docs + Claude Code docs, 2025)
|
|||
|
|
>
|
|||
|
|
> ⚠️ **OBS:** Om konto är i ett opt-in-region (eu-north-1 IS opt-in) kan formuläret behöva fyllas i separat för den regionen — inte bara i us-east-1. Fyll alltid i formuläret med region-switchen satt till **eu-north-1**.
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Alternativ: CLI-metod (om console inte fungerar)
|
|||
|
|
|
|||
|
|
Om Erik föredrar CLI, eller om konsolformuläret ger problem:
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
# Steg 1: Skapa form-data JSON
|
|||
|
|
cat > /tmp/anthropic-form.json << 'EOF'
|
|||
|
|
{
|
|||
|
|
"companyName": "Wavult",
|
|||
|
|
"companyWebsite": "https://wavult.com",
|
|||
|
|
"intendedUsers": "0",
|
|||
|
|
"industryOption": "Technology",
|
|||
|
|
"otherIndustryOption": "",
|
|||
|
|
"useCases": "We are building AAMOS, an internal enterprise platform for AI governance and model assurance. Claude (Sonnet/Opus) is used as an internal judge model evaluating outputs from other AI models for quality, safety, and compliance. Usage is strictly internal — no external user exposure."
|
|||
|
|
}
|
|||
|
|
EOF
|
|||
|
|
|
|||
|
|
# Steg 2: Base64-koda och skicka
|
|||
|
|
FORM_B64=$(cat /tmp/anthropic-form.json | base64 -w 0)
|
|||
|
|
|
|||
|
|
aws bedrock put-use-case-for-model-access \
|
|||
|
|
--region eu-north-1 \
|
|||
|
|
--form-data "$FORM_B64"
|
|||
|
|
|
|||
|
|
# Förväntat svar: HTTP 201 (tomt body = framgång)
|
|||
|
|
|
|||
|
|
# Steg 3: Verifiera tillgång
|
|||
|
|
aws bedrock get-foundation-model-availability \
|
|||
|
|
--region eu-north-1 \
|
|||
|
|
--model-id anthropic.claude-sonnet-4-5-20250929-v1:0
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
> **IAM som krävs för CLI:** `bedrock:PutUseCaseForModelAccess`, `bedrock:GetFoundationModelAvailability`
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Verifiera att det fungerar efteråt
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
# Test-anrop efter godkänd FTU
|
|||
|
|
aws bedrock-runtime invoke-model \
|
|||
|
|
--region eu-north-1 \
|
|||
|
|
--model-id eu.anthropic.claude-sonnet-4-5 \
|
|||
|
|
--body '{"anthropic_version":"bedrock-2023-05-31","max_tokens":100,"messages":[{"role":"user","content":"Hello"}]}' \
|
|||
|
|
--content-type application/json \
|
|||
|
|
/tmp/response.json && cat /tmp/response.json
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
Förväntat: JSON-svar med Claude-output (inte `AccessDeniedException`).
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Vanliga fel & lösningar
|
|||
|
|
|
|||
|
|
| Fel | Trolig orsak | Lösning |
|
|||
|
|
|---|---|---|
|
|||
|
|
| "Model use case details have not been submitted" | FTU-formuläret ej ifyllt | Följ stegen ovan |
|
|||
|
|
| "AccessDeniedException" direkt efter submit | Propagation tar upp till 2 min | Vänta 2 min, försök igen |
|
|||
|
|
| Formuläret syns inte i konsolen | IAM saknar `bedrock:PutUseCaseForModelAccess` | Lägg till behörigheten |
|
|||
|
|
| eu-north-1 kräver eget formulär | Opt-in region | Byt region-switcher till eu-north-1 i konsolen INNAN du fyller i |
|
|||
|
|
| "Access to Anthropic models is not allowed from unsupported countries" | Faktureringskonto i ej stödd region | Verifiera att AWS-kontots billing address är i stödd region |
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Källhänvisningar (verifierade 2026-06-06)
|
|||
|
|
|
|||
|
|
| Källa | URL | Datum |
|
|||
|
|
|---|---|---|
|
|||
|
|
| AWS officiell doc — Model Access | https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html | 2025 |
|
|||
|
|
| AWS Security Blog — Simplified Model Access | https://aws.amazon.com/blogs/security/simplified-amazon-bedrock-model-access/ | Okt 2025 |
|
|||
|
|
| AWS re:Post — Access Anthropic models | https://repost.aws/knowledge-center/bedrock-access-anthropic-model | 2025 |
|
|||
|
|
| Claude Code Docs — Amazon Bedrock setup | https://code.claude.com/docs/en/amazon-bedrock | 2026 |
|
|||
|
|
| PutUseCaseForModelAccess API | https://docs.aws.amazon.com/bedrock/latest/APIReference/API_PutUseCaseForModelAccess.html | 2025 |
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## Vad som är VERIFIERAT vs ANTAGANDE
|
|||
|
|
|
|||
|
|
### ✅ Verifierat (från AWS officiell dokumentation)
|
|||
|
|
- FTU-formuläret krävs EN gång per konto för Anthropic-modeller
|
|||
|
|
- Godkännande sker omedelbart automatiskt (ingen manuell review)
|
|||
|
|
- Formulärfälten: companyName, companyWebsite, intendedUsers, industryOption, otherIndustryOption, useCases
|
|||
|
|
- `intendedUsers`: 0=Internal, 1=External, 2=Internal_and_External
|
|||
|
|
- Max längd useCases: 8192 tecken
|
|||
|
|
- Formuläret kan fyllas i via konsolen ELLER `PutUseCaseForModelAccess` API
|
|||
|
|
- AWS Organization management account submission ärver till child accounts (via API)
|
|||
|
|
|
|||
|
|
### ⚠️ Antaganden / Ej helt verifierat
|
|||
|
|
- **Exakta UI-steg i konsolen:** Nuvarande console-layout (2026) kan ha ändrats från den dokumenterade flödet — knappetiketter och menylayout kan skilja sig. Principen (Model Catalog → Anthropic-modell → "Submit use case details") är verifierad.
|
|||
|
|
- **Industry-dropdown-alternativ:** De exakta strängar som finns i dropdown är inte dokumenterade i AWS officiell spec — "Technology" och "Software" är rimliga gissningar baserade på community-rapporter.
|
|||
|
|
- **eu-north-1-specifik beteende:** Att opt-in-regioner kan kräva separat FTU-formulär är dokumenterat generellt men inte specifikt bekräftat för eu-north-1 i det här sammanhanget.
|
|||
|
|
- **Wavult.com domän:** Antaget att detta är korrekt domän — verifiera med Erik.
|