webiny-infra-catalog

Catalogs 35 Webiny infrastructure abstractions with import paths and source file references.

8.0k|673|Updated Jan 9, 2018
One-click install
npx skills add https://github.com/webiny/webiny-js --skill webiny-infra-catalog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webiny-infra-catalog
Source: https://github.com/webiny/webiny-js/tree/main/skills/user-skills/generated/infra
Command: npx skills add https://github.com/webiny/webiny-js --skill webiny-infra-catalog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers extending Webiny projects often struggle to discover which infrastructure hooks, Pulumi features, and services exist and where to import them from. This Skill provides a single catalog of 35 infrastructure abstractions with exact import statements and source file locations.

Core Features & Use Cases

  • Lifecycle Hook Discovery: Lists BeforeBuild, AfterBuild, BeforeDeploy, AfterDeploy, and BeforeWatch hooks for Admin, API, and Core apps.
  • Pulumi & Service Abstractions: Covers AdminPulumi, ApiPulumi, CorePulumi, stack output services, custom domain setters, LoggerService, UiService, EnvVar, and InvokeLambdaFunction.
  • Use Case: When you need to run custom logic before deploying the API app, look up ApiBeforeDeploy, read its source file for the exact interface, and import it from webiny/infra/api.

Quick Start

Ask the assistant to find the right Webiny infrastructure abstraction for hooking into the API deploy lifecycle and show its import statement.

Frequently Asked Questions about webiny-infra-catalog

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I hook into the Webiny deploy lifecycle?

Use the BeforeDeploy and AfterDeploy abstractions, available globally or per app as ApiBeforeDeploy, AdminBeforeDeploy, and CoreBeforeDeploy. Import them from webiny/infra or the app-specific path like webiny/infra/api, then read the source file for the exact interface.

How do I customize Pulumi infrastructure in Webiny?

Use the AdminPulumi, ApiPulumi, or CorePulumi abstractions imported from webiny/infra/admin, webiny/infra/api, or webiny/infra/core. These let you modify the Pulumi resource definitions for each app before deployment.

How do I set custom domains for a Webiny API or Admin app?

Use SetApiCustomDomains from webiny/infra/api or SetAdminCustomDomains from webiny/infra/admin. Check the source files under @webiny/project-aws/abstractions/features/pulumi for the exact configuration interface.

Can I define environment variables in a Webiny project extension?

Yes, use the EnvVar abstraction imported from webiny/infra. It defines an environment variable in the project context, with its source located at @webiny/project/extensions/EnvVar.ts.

What services are available in Webiny project extensions?

Available services include LoggerService, UiService, ApiGqlClient, InvokeLambdaFunction, and per-app stack output services like ApiStackOutputService. All are importable from webiny/infra, with interfaces defined in the referenced source files.