Eks Buildのロゴ

Eks Build

組織
aws-samples
eks-build

EKSクラスターの構築時に使用します。ArgoCD GitOpsとの連携を任意で追加できる、本番環境対応のTerraformプロジェクト一式を生成します。エアギャップ/VPCエンドポイントのみのネットワーク、企業プロキシ、プライベートコンテナレジストリ、コンプライアンス要件など、環境固有の制約に対応します。Terraformのみ、ArgoCD+Terraform、ArgoCD+ACK/KROの3つのパターンをサポートします。検証済みモジュール、2段階のWebhook順序制御、IRSA/Pod Identity、29種類以上のアドオン構成を含みます。対話形式で質問に回答するか、要件YAMLをそのまま使用できます。また、(1)EKSのTerraformコードをゼロから生成する、(2)ArgoCDで管理するEKSアドオンを作成する、(3)コンプライアンス制約のあるEKSプロジェクトのひな型を作成する、(4)EKSアドオンの2段階Webhook順序制御を実装する、(5)EKSワークロード用にIRSAまたはPod Identityを構成する、(6)EKSアドオン管理用のArgoCD ApplicationSetを生成する、(7)実装方針を決めるためにデプロイパターンを比較する場合にも使用します。Amazon ECSには使用しないでください(ecs-buildを使用)。

Add to TypingMind

概要

公開者aws-samples
リポジトリsample-apex-skills
スキル名eks-build
スター
90
フォーク
20
同梱ファイル
8
ライセンスMIT-0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 8個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    aws-samplesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Eks Build」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/aws-samples/sample-apex-skills/tree/main/skills/eks-build
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aws-samples/sample-apex-skills.git /tmp/sample-apex-skills
mkdir -p .claude/skills
cp -r /tmp/sample-apex-skills/skills/eks-build .claude/skills/eks-build
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEks Buildを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にEks Buildを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Eks Buildは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

EKS Build

Generate complete, production-ready EKS infrastructure projects. All generated code is terraform apply-ready with zero manual fixups.

All generated Terraform code MUST follow the conventions from these companion skills:

  • terraform-skill -- resource block ordering, variable conventions, file organization, version constraints

When to Use

  • Generating EKS Terraform code from requirements (new project)
  • Scaffolding EKS infrastructure with air-gapped, proxy, or compliance constraints
  • Creating ArgoCD GitOps integration for EKS addon management
  • Implementing two-phase webhook ordering for eks-blueprints-addons
  • Configuring IRSA or Pod Identity for EKS workloads
  • Generating ArgoCD ApplicationSets for addon lifecycle
  • Creating Ralph loop validation configurations for EKS projects
  • Adding custom addons (Kyverno, Prisma, New Relic) to an EKS project
  • Choosing between or comparing deployment patterns (full Terraform vs ArgoCD+Terraform vs ArgoCD+ACK/KRO) for an actual build

Don't Use

  • Designing EKS architecture from requirements (use eks-design)
  • General Terraform module development or testing (use terraform-skill)
  • EKS cluster reconnaissance or discovery (use eks-recon)
  • EKS operational best practices reference (use eks-best-practices)
  • Amazon ECS builds of any kind (use ecs-build)

Internet Search Requirements

This skill generates code from scratch every time. Always search the internet for:

  • Latest versions of all addons, Helm charts, and Terraform modules before generating code -- never use hardcoded versions from cached knowledge
  • Latest EKS best practices when requirements don't exactly match existing patterns
  • Addon-specific configuration for addons not fully covered in existing patterns
  • Breaking changes in new versions of addons or Terraform modules
  • Pattern 2b: KRO, ACK, and Crossplane -- these evolve rapidly. Always search for latest RGD schema syntax, supported CRDs, ProviderConfig format, and known limitations

The references in this skill cover the most common scenarios. For anything beyond that, research first, then adapt.

Pattern Decision Matrix

Key distinction: All patterns use Terraform for the EKS cluster and VPC infrastructure. The patterns differ in how K8s addons and AWS addon resources are managed after the cluster exists.

FactorPattern 1: Full TerraformPattern 2a: ArgoCD + TF AWSPattern 2b: ArgoCD + K8s-native AWS
K8s addon managementTerraform (Helm releases)K8s-native (ArgoCD ApplicationSets)K8s-native (ArgoCD ApplicationSets)
AWS resources for addonsTerraform (IRSA roles, S3 buckets)Terraform for AWS IaC (IRSA roles, S3)K8s-native controller (ACK, Crossplane)
Deployment workflowCI/CD runs terraform applyFull GitOps -- ArgoCD reconciles from GitFull GitOps -- ArgoCD reconciles from Git
Drift detectionterraform plan (manual/scheduled)ArgoCD self-heal + terraform plan for AWSArgoCD self-heal + controller reconciliation
Terraform surface areaEverything (cluster + addons + AWS)Cluster + AWS resources (addons in ArgoCD)Cluster only (addons + AWS both in K8s)
Air-gapped supportBest (Terraform controls all images)Good (ECR mirrors + ArgoCD)Good (same as 2a)
StatusValidatedValidatedValidated

For detailed architecture, trade-offs, and selection criteria see references/pattern-guide.md.

Pattern 2a vs 2b -- The Defining Difference

The ONLY difference between 2a and 2b is WHO creates the AWS resources that addons need (S3 buckets, IAM roles, policies, Route53 zones):

Pattern 2aPattern 2b
Who creates AWS resources?Terraform (module "eks_blueprints_addons", aws_iam_role)K8s-native controller (ACK CRDs, Crossplane MRs)
Terraform surface areaCluster + IAM + S3 + policiesCluster + controller bootstrap ONLY

Self-check: If generated code still uses Terraform for IRSA roles or S3 buckets for addons, that is Pattern 2a, NOT 2b.

Pattern 2b does NOT prescribe which controller. The choice is: ACK, Crossplane, or any K8s-native AWS controller. KRO provides orchestration on top (composing multiple resources into RGDs). Always search the internet for latest KRO docs before generating Pattern 2b code.

Workflow

Step 1: Gather Requirements

Accept requirements via interactive questionnaire or a requirements YAML file. If YAML is supplied, validate coverage (cluster, compute, networking, addons, auth, compliance, multi-tenancy) and prompt for gaps.

Step 2: Select Pattern

Based on requirements, select Pattern 1, 2a, or 2b from the decision matrix.

Step 3: Create Project Structure

projects/<project-name>/
├── design/        # Architecture docs (eks-design skill)
└── code/          # Terraform code (this skill)

Step 4: Generate Pattern Scaffold

Generate root Terraform files under projects/<project-name>/code/ following terraform-skill conventions.

  • Pattern 1 -- main.tf implements two-phase module architecture (Critical Rule 1). Phase 1: LBC + Gatekeeper with wait = true. Phase 2: all remaining addons with depends_on = [module.eks_addons_webhooks].
  • Pattern 2a/2b -- main.tf provisions EKS cluster and GitOps Bridge. For 2a include IRSA roles. For 2b include only controller bootstrap IAM.

Before generating, search the internet for latest stable versions of terraform-aws-modules/eks, terraform-aws-modules/vpc, aws-ia/eks-blueprints-addons, and all Helm charts. Pin exact versions. See references/version-matrix.md.

Step 5: Generate Required Modules

Under projects/<project-name>/code/modules/:

  • eks-cluster/ -- always. Wraps terraform-aws-modules/eks with opinionated defaults from references/baseline-defaults.md.
  • custom-addons/ -- if custom addons enabled. See references/addon-catalog.md.
  • kyverno-policies/ -- if Kyverno CIS benchmark enabled.
  • eks-tenants/ -- if multi-tenancy enabled.
  • eks-gitops-bridge/ -- Pattern 2 only.

Step 6-7: Configure and Customize

Edit configs/*.yaml based on requirements and apply customization patches per references/customization-guide.md:

  • Air-gapped, Enterprise proxy, Private registry, Compliance-strict

Step 8: Generate GitOps Artifacts (Pattern 2 only)

Generate the gitops/ tree with ArgoCD ApplicationSets. Use cluster ARN as destination server (Critical Rule 10). For OCI Helm charts, omit oci:// prefix in repoURL (Critical Rule 10b).

Step 9-10: README and Validate

Generate README and run scripts/validate_project.sh to verify structure, formatting, and critical configuration.

Critical Build Rules

Non-negotiable lessons from production deployments. Violating any causes deployment failures. See references/lessons-learned.md for full context.

1. Two-Phase Module Architecture (Pattern 1)

Split eks-blueprints-addons into TWO module calls:

  • Phase 1: LBC + Gatekeeper only, wait: true
  • Phase 2: All other addons, depends_on = [module.eks_addons_webhooks]

LBC and Gatekeeper register webhooks (failurePolicy: Fail) before pods are ready. Without two-phase, these webhooks block all other addon deployments.

2. before_compute: true

MANDATORY for vpc-cni and eks-pod-identity-agent. Without this, nodes fail with NodeCreationFailure: NetworkPluginNotReady.

3. Cluster-Autoscaler Version Match

Image tag MUST match EKS K8s minor version (e.g., v1.x.y for EKS 1.x).

4. LBC Requires Explicit vpcId

IMDS fallback fails with hop-limit restrictions. Always set vpcId in LBC Helm values.

5. Multus DISABLED

Thick-plugin pod-lookup race blocks ALL new pod creation. Never enable.

6. Version Pinning -- Always Search Internet

Never rely on module defaults or hardcoded versions. Search for every addon and module version before generating. See references/version-matrix.md.

7. Kyverno syncOptions (Pattern 2)

Use Replace=true, NOT ServerSideApply=true. SSA conflicts with ArgoCD selfHeal: true + --force.

8. Velero Configuration

Three-part config: S3 bucket (encrypted) + Auth (Pod Identity or IRSA) + Helm values (upgradeCRDs: false, pin kubectl.image.tag).

9. ACK/KRO Are Capabilities, Crossplane Is Not

ACK and KRO run as EKS Capabilities (no pods). Validate via CRDs, not kubectl pods. Crossplane runs as pods via Helm chart.

10. ArgoCD Destination Server (Pattern 2)

Use cluster ARN as destination server, NOT https://kubernetes.default.svc. AppProjects require sourceNamespaces: [argocd].

10b. ArgoCD OCI Helm Chart repoURL

Do NOT include oci:// prefix in repoURL. Use public.ecr.aws/karpenter with chart: karpenter.

10c. S3 Bucket Persistence in Destroy/Apply Cycles (Pattern 2b)

S3 buckets persist after terraform destroy because the controller is deleted first. Add aws s3 rb s3://<bucket> --force || true as pre-destroy step.

11. Use HashiCorp Terraform, NOT OpenTofu

OpenTofu v1.10.6 has severe depends_on performance regression (30+ min plan vs < 2 min with Terraform v1.14.5). Require HashiCorp Terraform v1.14.5+.

12. ArgoCD EKS Capability Requires IAM Identity Center

The AWS-managed ArgoCD EKS Capability requires an existing IAM Identity Center instance. Self-managed ArgoCD can use any auth method.

Customization Rules

ConstraintTriggerGuide
Air-gappednetwork.air_gapped = truecustomization-guide.md S1
Enterprise proxynetwork.proxy.enabled = truecustomization-guide.md S2
Private registryregistry.type = "private"customization-guide.md S3
Compliance-strictSecurity posture requirementcustomization-guide.md S4

Output Structure

Pattern 1

projects/<project-name>/code/
├── main.tf                    # Two-phase module architecture
├── locals.tf, data.tf, providers.tf, variables.tf, outputs.tf, versions.tf
├── modules/
│   ├── eks-cluster/
│   ├── custom-addons/
│   └── kyverno-policies/
├── configs/
│   ├── cluster.yaml, compute.yaml, addons.yaml, backend.hcl
└── validation-checklist.md

Pattern 2

projects/<project-name>/code/
├── main.tf                    # Cluster + GitOps Bridge
├── locals.tf, data.tf, providers.tf, variables.tf, outputs.tf, versions.tf
├── modules/
│   ├── eks-cluster/
│   ├── eks-gitops-bridge/
│   └── custom-addons/
├── configs/
│   ├── cluster.yaml, compute.yaml, addons.yaml, backend.hcl
├── gitops/
│   ├── addons/applicationset.yaml
│   ├── custom-addons/applicationset.yaml
│   ├── bootstrap/argocd-projects.yaml
│   └── tenants/applicationset.yaml
└── validation-checklist.md

Deployment

Pattern 1:

bash
cd projects/<project-name>/code
terraform init -backend-config=configs/backend.hcl
terraform plan && terraform apply

Pattern 2:

bash
cd projects/<project-name>/code
terraform init -backend-config=configs/backend.hcl
terraform plan && terraform apply
aws eks update-kubeconfig --name <CLUSTER_NAME> --region <REGION>
kubectl apply -f gitops/bootstrap/argocd-projects.yaml
kubectl apply -f gitops/addons/applicationset.yaml
kubectl apply -f gitops/custom-addons/applicationset.yaml

Expected Timing (HashiCorp Terraform v1.14.5+)

StepPattern 1Pattern 2
terraform plan< 2 min< 1 min
terraform apply~18 min~16 min
ArgoCD syncN/A~5 min
terraform destroy~10 min~15 min

Completion Checklist

Every item must be done before handoff:

  • Internet search for latest versions (not from cached knowledge)
  • Pattern selected and confirmed
  • Project structure created with pattern scaffold
  • Required modules generated
  • Configuration customized with project-specific values
  • Customization patches applied (if applicable)
  • GitOps artifacts generated (Pattern 2 only)
  • terraform fmt -check passes
  • before_compute: true set for vpc-cni and eks-pod-identity-agent
  • Two-phase module architecture present (Pattern 1)
  • All versions explicitly pinned
  • Multus NOT enabled
  • validation-checklist.md generated

References

Read these as needed based on the task at hand:

  • Baseline Defaults -- Read when generating cluster, compute, networking, or security configuration. Covers all default values applied to every project.
  • Pattern Guide -- Read when selecting between patterns or implementing pattern-specific architecture.
  • Customization Guide -- Read when applying air-gapped, proxy, private registry, or compliance constraints.
  • Addon Catalog -- Read when configuring specific addons or adding custom addons. Covers all 29+ supported addons.
  • Lessons Learned -- Read when troubleshooting deployment failures or understanding why a Critical Build Rule exists.
  • Version Matrix -- Read when looking up authoritative version sources for addons and Terraform modules.
  • Checkov Config -- Read when setting up security scanning for generated Terraform code.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Eks Build」では何ができますか?

EKSクラスターの構築時に使用します。ArgoCD GitOpsとの連携を任意で追加できる、本番環境対応のTerraformプロジェクト一式を生成します。エアギャップ/VPCエンドポイントのみのネットワーク、企業プロキシ、プライベートコンテナレジストリ、コンプライアンス要件など、環境固有の制約に対応します。Terraformのみ、ArgoCD+Terraform、ArgoCD+ACK/KROの3つのパターンをサポートします。検証済みモジュール、2段階のWebhook順序制御、IRSA/Pod Identity、29種類以上のアドオン構成を含みます。対話形式で質問に回答するか、要件YAMLをそのまま使用できます。また、(1)EKSのTerraformコードをゼロから生成する、(2)ArgoCDで管理するEKSアドオンを作成する、(3)コンプライアンス制約のあるEKSプロジェクトのひな型を作成する、(4)EKSアドオンの2段階Webhook順序制御を実装する、(5)EKSワークロード用にIRSAまたはPod Identityを構成する、(6)EKSアドオン管理用のArgoCD ApplicationSetを生成する、(7)実装方針を決めるためにデプロイパターンを比較する場合にも使用します。Amazon ECSには使用しないでください(ecs-buildを使用)。

TypingMindでEks Buildを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Eks Buildはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEks Buildをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/aws-samples/sample-apex-skills/tree/main/skills/eks-buildを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Eks Buildを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Eks Buildで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEks Buildを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Eks Build」は無料ですか?

はい。aws-samplesがMIT-0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇