webiny-infrastructure-extensions
하는 일
Pulumi 핸들러와 특수 설정 컴포넌트를 사용해 Webiny 프로젝트의 AWS 인프라를 맞춤 설정하는 방법을 설명합니다. 리소스, 리전, 배포 모드를 바꿔야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Webiny 프로젝트에 추가 스토리지 버킷이나 알람 같은 맞춤 AWS 리소스를 넣고 싶을 때.
- ✓Webiny 프로젝트에 맞춤 도메인, VPC, 리소스 태그를 설정해야 할 때.
- ✓운영과 개발 환경에 서로 다른 인프라 설정을 쓰고 싶은 경우.
스킬 링크
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/infrastructure-extensions/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Webiny 프로젝트의 클라우드 구성에 S3 버킷을 하나 추가하려면 어떻게 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
개발자는 클라우드 구성을 바꾸는 작은 코드 핸들러를 작성하고, 프로젝트의 설정 파일에 특수 컴포넌트로 등록합니다. 이 스킬은 어떤 설정을 쓸지, 어디에 둘지를 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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)
자주 묻는 질문
맞춤 코드는 어디에 두나요?
핸들러 파일에 두고, webiny.config.tsx 파일에 특수 컴포넌트로 등록합니다. 파일 경로에는 .ts 확장자가 있어야 합니다.
이걸로 OpenSearch를 설정할 수 있나요?
네. OpenSearch는 VPC, 리전, 태그와 함께 내장 설정 중 하나로 다룹니다.
운영과 개발의 차이도 다루나요?
네. 운영 모드와 개발 모드에 서로 다른 인프라 설정을 쓰는 방법을 설명합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.1k
- 순위
- #12613
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
prd-to-plan
8.1k에이전트가 제품 요구사항 문서를 작고 끝까지 이어지는 조각들로 된 단계별 계획으로 바꿔 Markdown 파일로 저장하도록 돕습니다.
webiny-admin-architect
8.1k에이전트에게 Webiny 플랫폼의 관리자 화면을 비즈니스 로직 계층과 프레젠터 패턴으로 만드는 방법을 가르칩니다.
webiny-admin-permissions
8.1k에이전트에게 Webiny 관리자 화면에 권한 제어를 추가하는 법을 가르칩니다. 스키마에서 권한 양식을 자동 생성하고 표시 여부를 확인합니다.
webiny-form-model
8.1k에이전트에게 선언형 필드 빌더, 레이아웃, 검증, 조건부 규칙으로 Webiny 양식을 만드는 법을 가르칩니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.