webiny-infrastructure-extensions
Was er macht
Erklärt, wie man die AWS-Infrastruktur eines Webiny-Projekts mit Pulumi-Handlern und speziellen Konfigurationskomponenten anpasst. Sie ist für Entwickler gedacht, die Cloud-Ressourcen, Regionen oder Deployment-Modi ändern müssen.
Wann du ihn nutzt
- ✓Wenn ein Entwickler eine eigene AWS-Ressource hinzufügen will, etwa einen zusätzlichen Speicher-Bucket oder einen Alarm.
- ✓Wenn ein Entwickler eine eigene Domain, ein VPC oder Ressourcen-Tags für ein Webiny-Projekt einrichten muss.
- ✓Wenn ein Entwickler für Produktion und Entwicklung unterschiedliche Infrastruktur-Einstellungen will.
Link zum Skill
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/infrastructure-extensions/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Wie füge ich dem Cloud-Setup meines Webiny-Projekts einen zusätzlichen S3-Bucket hinzu?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Entwickler schreibt einen kleinen Code-Handler, der das Cloud-Setup ändert, und registriert ihn in der Konfigurationsdatei des Projekts. Die Fähigkeit erklärt, welche Einstellungen zu nutzen sind und wo sie stehen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Infrastructure Extensions
TL;DR
Infrastructure extensions modify your AWS infrastructure using Pulumi handlers and declarative <Infra.*> components in webiny.config.tsx. Pulumi handlers implement CorePulumi.Interface and are registered via <Infra.Core.Pulumi>. Declarative components configure OpenSearch, VPC, tags, regions, custom domains, blue-green deployments, and environment-specific settings.
Pulumi Handler Pattern
Write custom Pulumi code that runs during infrastructure deployment:
// extensions/MyCorePulumiHandler.ts
import { Ui } from "webiny/infra";
import { CorePulumi } from "webiny/infra/core";
class MyCorePulumiHandlerImpl implements CorePulumi.Interface {
constructor(private ui: Ui.Interface) {}
execute(app: any) {
this.ui.info("Executing MyCorePulumiHandler with environment:", app.env);
// Access and modify Pulumi resources here
// app.resources gives you access to all provisioned resources
}
}
export default CorePulumi.createImplementation({
implementation: MyCorePulumiHandlerImpl,
dependencies: [Ui]
});
Register (YOU MUST include the .ts file extension in the src prop — omitting it will cause a build failure):
<Infra.Core.Pulumi src={"/extensions/MyCorePulumiHandler.ts"} />
Use Cases for Pulumi Handlers
- Add custom AWS resources (CloudWatch alarms, extra S3 buckets, Lambda functions)
- Modify existing resource properties (Lambda memory, timeouts, environment variables)
- Add conditional infrastructure based on environment
- Integrate with third-party infrastructure providers
Declarative Infrastructure Components
These components go directly in webiny.config.tsx -- no separate extension file needed:
AWS Configuration
{/* Set the AWS region */}
<Infra.Aws.DefaultRegion name={"us-east-1"} />
{/* Apply tags to all AWS resources -- multiple calls are merged */}
<Infra.Aws.Tags tags={{ OWNER: "me", PROJECT: "my-project" }} />
<Infra.Aws.Tags tags={{ COST_CENTER: "engineering" }} />
Search & Networking
OpenSearch, DynamoDB and the S3 bucket belong to the Core app, so they live under Infra.Core. The older top-level names (Infra.OpenSearch, Infra.DynamoDb, Infra.S3Bucket) still work and point at the same components.
{
/* Enable/disable OpenSearch */
}
<Infra.Core.OpenSearch enabled={true} />;
{
/* Enable/disable VPC deployment */
}
<Infra.Vpc enabled={false} />;
Backups
Both are on by default for production environments and off for all others. Set enabled to override that in either direction.
{
/* DynamoDB point-in-time recovery (primary, audit logs and, with OpenSearch, the ddb-os table) */
}
<Infra.Core.DynamoDb.Pitr enabled={false} />;
{
/* S3 versioning on the File Manager bucket */
}
<Infra.Core.S3Bucket.Versioning enabled={false} />;
Resource Naming
{
/* Prefix all Pulumi resource names */
}
<Infra.PulumiResourceNamePrefix prefix={"myproj-"} />;
{
/* Define which environments use production-grade infrastructure */
}
<Infra.ProductionEnvironments environments={["prod", "staging"]} />;
Custom Domains
<Infra.Admin.CustomDomains
domains={["admin.example.com"]}
sslMethod="sni-only"
certificateArn="arn:aws:acm:us-east-1:123456789:certificate/abc-123"
/>
Blue-Green Deployments
<Infra.BlueGreenDeployments
enabled={true}
domains={{
acmCertificateArn: "arn:aws:acm:us-east-1:123456789:certificate/abc-123",
sslSupportMethod: "sni-only",
domains: {
api: ["api.example.com"],
admin: ["admin.example.com"],
website: ["website.example.com"],
preview: ["preview.example.com"]
}
}}
deployments={[
{ name: "green", env: "dev", variant: "green" },
{ name: "blue", env: "dev", variant: "blue" }
]}
/>
Environment-Conditional Configuration
Use <Infra.Env.Is> to apply settings only in specific environments:
{
/* Production only */
}
<Infra.Env.Is env="prod">
<Infra.Aws.Tags tags={{ ENV: "production" }} />
<Infra.Core.OpenSearch enabled={true} />
</Infra.Env.Is>;
{
/* Non-production (accepts array) */
}
<Infra.Env.Is env={["dev", "staging"]}>
<Infra.Aws.Tags tags={{ ENV: "non-production" }} />
<Infra.Core.OpenSearch enabled={false} />
</Infra.Env.Is>;
Project-Level Settings
{
/* Disable telemetry */
}
<Project.Telemetry enabled={false} />;
{
/* Auto-install for CI/CD (skip the installation wizard)
Häufige Fragen
Wohin kommt der eigene Code?
In eine Handler-Datei, die mit einer speziellen Komponente in der webiny.config.tsx registriert wird. Der Dateipfad muss die Endung .ts enthalten.
Kann ich damit OpenSearch einrichten?
Ja. Die Fähigkeit behandelt OpenSearch als eine der eingebauten Einstellungen, neben VPC, Regionen und Tags.
Deckt sie Unterschiede zwischen Produktion und Entwicklung ab?
Ja. Sie erklärt, wie man für Produktions- und Entwicklungsmodus unterschiedliche Infrastruktur-Einstellungen setzt.
Details
Originalbeschreibung des Autors
Modifying AWS infrastructure using Pulumi handlers and declarative Infra components. Use this skill when the developer wants to customize AWS infrastructure, add Pulumi handlers, configure OpenSearch, VPC, resource tags, regions, custom domains, blue-green deployments, environment-conditional config, or manage production vs development infrastructure modes. Covers CorePulumi.Interface, all <Infra.*> declarative components, and <Infra.Env.Is>.
repo: webiny/webiny-js
Beliebtheit
- GitHub-Sterne
- 8.1k
- Platz im Ranking
- #12613
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
prd-to-plan
8.1kHilft deinem Agenten, ein Produktanforderungsdokument in einen phasenweisen Plan aus kleinen Ende-zu-Ende-Scheiben zu verwandeln, gespeichert als Markdown-Datei.
webiny-admin-architect
8.1kBringt deinem Agenten bei, Admin-Oberflächen für die Webiny-Plattform zu bauen, mit ihren Geschäftslogik-Schichten und dem Presenter-Muster.
webiny-admin-permissions
8.1kBringt deinem Agenten bei, Berechtigungssteuerungen zu Webiny-Admin-Bildschirmen hinzuzufügen, einschließlich automatisch erzeugter Berechtigungsformulare und Prüfungen zum Ein- oder Ausblenden.
webiny-form-model
8.1kBringt deinem Agenten bei, Formulare in Webiny mit einem deklarativen Feld-Baukasten zu bauen, mit Layouts, Validierung und bedingten Regeln.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.