@@ -14,37 +14,37 @@ Instead of storing long-lived AWS credentials (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_
1414## Prerequisites
1515
1616- Wraps AWS account (905130073023)
17- - Vercel Team ID and Project ID
17+ - Vercel Team slug and Project name
1818- AWS CLI configured with Wraps account credentials
1919
20- ## Step 1: Get Vercel IDs
20+ ## Step 1: Get Vercel identifiers
2121
2222### Get Team ID
23231 . Go to https://vercel.com/account
24242 . Click on your team settings
25253 . Copy the Team ID (format: ` team_xxxxx ` )
2626
27- ### Get Project ID
27+ ### Get Project Name
28281 . Go to your Vercel project settings
29- 2 . Navigate to "General" tab
30- 3 . Copy the Project ID (format: ` prj_xxxxx ` )
29+ 2 . Navigate to the "General" tab
30+ 3 . Copy the Project Name (for example, ` wraps-web ` )
3131
3232## Step 2: Deploy CloudFormation Stack
3333
3434Deploy the OIDC provider and IAM role to your Wraps AWS account:
3535
3636``` bash
37- # Set your Vercel IDs
37+ # Set your Vercel identifiers
3838VERCEL_TEAM_ID=" team_xxxxx"
39- VERCEL_PROJECT_ID= " prj_xxxxx "
39+ VERCEL_PROJECT_NAME= " wraps-web "
4040
4141# Deploy the stack
4242AWS_PROFILE=wraps aws cloudformation create-stack \
4343 --stack-name wraps-vercel-oidc \
4444 --template-body file://cloudformation/vercel-oidc-role.yaml \
4545 --parameters \
4646 ParameterKey=VercelTeamId,ParameterValue=${VERCEL_TEAM_ID} \
47- ParameterKey=VercelProjectId ,ParameterValue=${VERCEL_PROJECT_ID } \
47+ ParameterKey=VercelProjectName ,ParameterValue=${VERCEL_PROJECT_NAME } \
4848 --capabilities CAPABILITY_NAMED_IAM \
4949 --region us-east-1
5050
@@ -117,8 +117,8 @@ Call STS AssumeRoleWithWebIdentity
117117Vercel OIDC Provider validates token
118118 ↓
119119Check trust policy conditions:
120- - aud = "vercel"
121- - sub = "team:xxx: project:xxx :environment:production"
120+ - aud = "https:// vercel.com/<team-slug> "
121+ - sub = "owner:< team-slug>: project:<project-name> :environment:production"
122122 ↓
123123Return temporary credentials (valid ~1 hour)
124124 ↓
@@ -151,7 +151,7 @@ After deployment, check that OIDC is working:
151151
152152** Cause** : Trust policy doesn't match your Vercel team/project.
153153
154- ** Fix** : Verify the Team ID and Project ID in the CloudFormation parameters:
154+ ** Fix** : Verify the team slug and project name in the CloudFormation parameters:
155155``` bash
156156AWS_PROFILE=wraps aws cloudformation describe-stacks \
157157 --stack-name wraps-vercel-oidc \
0 commit comments