WHAT YOU'LL LEARN
  • how to change the default wby- prefix used for all deployed AWS resource names

Overview
anchor

By default, all AWS resources deployed by Webiny are prefixed with wby-. You can change this via Infra.PulumiResourceNamePrefix in webiny.config.tsx.

Configuration
anchor

webiny.config.tsx
import React from "react";
import { Infra } from "webiny/extensions";

export const Extensions = () => {
  return (
    <>
      <Infra.PulumiResourceNamePrefix prefix={"myproj-"} />
    </>
  );
};

Redeploying After Changes
anchor

After making changes, redeploy by running the webiny deploy command:

yarn webiny deploy

Use --env <name> to target a specific environment if needed.