@wraps.dev/cli 2.21.11 → 2.21.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api-lambda.zip
CHANGED
|
Binary file
|
package/dist/cli.js
CHANGED
|
@@ -33850,12 +33850,14 @@ Run ${pc47.cyan("wraps selfhost deploy")} to deploy the self-hosted control plan
|
|
|
33850
33850
|
process.exit(1);
|
|
33851
33851
|
return;
|
|
33852
33852
|
}
|
|
33853
|
-
const { config: config2 } = metadata.services.selfhost;
|
|
33853
|
+
const { config: config2, apiUrl } = metadata.services.selfhost;
|
|
33854
33854
|
const env = {
|
|
33855
33855
|
DATABASE_URL: config2.databaseUrl,
|
|
33856
33856
|
NEXT_PUBLIC_APP_URL: config2.appUrl,
|
|
33857
|
+
NEXT_PUBLIC_API_URL: apiUrl,
|
|
33857
33858
|
CORS_ORIGIN: config2.appUrl,
|
|
33858
33859
|
BETTER_AUTH_SECRET: config2.betterAuthSecret,
|
|
33860
|
+
UNSUBSCRIBE_SECRET: config2.unsubscribeSecret,
|
|
33859
33861
|
WRAPS_LICENSE_KEY: config2.licenseKey,
|
|
33860
33862
|
AWS_BACKEND_ACCOUNT_ID: identity.accountId
|
|
33861
33863
|
};
|
|
@@ -33873,14 +33875,23 @@ Run ${pc47.cyan("wraps selfhost deploy")} to deploy the self-hosted control plan
|
|
|
33873
33875
|
console.log(`${key}=${value}`);
|
|
33874
33876
|
}
|
|
33875
33877
|
console.log("");
|
|
33876
|
-
console.log(
|
|
33877
|
-
|
|
33878
|
-
);
|
|
33879
|
-
console.log(
|
|
33880
|
-
|
|
33881
|
-
);
|
|
33882
|
-
console.log("#
|
|
33883
|
-
console.log("#
|
|
33878
|
+
console.log("# =============================================================================");
|
|
33879
|
+
console.log("# AWS Backend Credentials \u2014 Vercel OIDC (recommended)");
|
|
33880
|
+
console.log("# =============================================================================");
|
|
33881
|
+
console.log("#");
|
|
33882
|
+
console.log("# 1. In Vercel: Project Settings \u2192 Cloud \u2192 Configure AWS");
|
|
33883
|
+
console.log("# Copy the OIDC Provider URL (looks like https://oidc.vercel.com/<team-id>)");
|
|
33884
|
+
console.log("#");
|
|
33885
|
+
console.log("# 2. In AWS IAM \u2192 Identity providers \u2192 Add provider:");
|
|
33886
|
+
console.log("# Provider type: OpenID Connect");
|
|
33887
|
+
console.log("# Provider URL: <your Vercel OIDC URL from step 1>");
|
|
33888
|
+
console.log("# Audience: sts.amazonaws.com");
|
|
33889
|
+
console.log("#");
|
|
33890
|
+
console.log("# 3. Create an IAM role that trusts that OIDC provider, with this permission:");
|
|
33891
|
+
console.log(`# sts:AssumeRole on arn:aws:iam::${identity.accountId}:role/wraps-console-access-role`);
|
|
33892
|
+
console.log("#");
|
|
33893
|
+
console.log("# 4. Set AWS_ROLE_ARN to that role's ARN in Vercel:");
|
|
33894
|
+
console.log(`# AWS_ROLE_ARN=arn:aws:iam::${identity.accountId}:role/<your-vercel-backend-role>`);
|
|
33884
33895
|
clack44.outro(
|
|
33885
33896
|
pc47.dim(
|
|
33886
33897
|
"Paste into Vercel \u2192 Settings \u2192 Environment Variables \u2192 Add from .env"
|