create-infrastructure

Generate Harness infrastructure YAML and provision via MCP.

80|16|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/harness/harness-skills --skill create-infrastructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-infrastructure
Source: https://github.com/harness/harness-skills/tree/main/skills/create-infrastructure
Command: npx skills add https://github.com/harness/harness-skills --skill create-infrastructure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating and provisioning Harness infrastructure definitions manually is error-prone and slows deployment across clusters and cloud targets; this skill streamlines YAML generation and MCP provisioning.

Core Features & Use Cases

  • Automatically generate infrastructure YAML for KubernetesDirect, KubernetesGcp, KubernetesAzure, ECS, and ServerlessAwsLambda.
  • Provision infrastructure definitions via MCP using harness_create and enforce environment/connector prerequisites.
  • Use case: a software engineer needs to set up a new production environment quickly by generating the correct infrastructure YAML and provisioning it with a single prompt.

Quick Start

Create a KubernetesDirect infrastructure YAML and push it via MCP.

Frequently Asked Questions about create-infrastructure

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

FAQPage Schema
How do I generate Harness infrastructure YAML for Kubernetes deployments?

You can generate Harness infrastructure YAML for KubernetesDirect, KubernetesGcp, and KubernetesAzure by using a skill that applies predefined templates and renders the configuration automatically. This automates YAML creation for your specific cluster targets.

Can I provision serverless AWS Lambda infrastructure definitions via MCP?

Yes, you can provision ServerlessAwsLambda infrastructure definitions via MCP. The process renders the appropriate YAML template and uses the harness_create command to initiate automated provisioning.

What prerequisites do I need to set up infrastructure definitions using MCP?

You need an existing Harness environment and the relevant cloud or cluster connectors configured before generating infrastructure YAML. These prerequisites are enforced to ensure successful MCP-based provisioning.

Does this approach support generating infrastructure YAML for ECS deployments?

Yes, generating infrastructure YAML supports ECS deployments alongside KubernetesDirect, KubernetesGcp, KubernetesAzure, and ServerlessAwsLambda. It renders the required configuration and provisions it through the harness_create resource type.

Why does manual infrastructure YAML generation slow down deployment across clusters?

Manual infrastructure YAML generation is error-prone and slows deployment across clusters and cloud targets due to repetitive configuration. Automating this rendering and MCP provisioning streamlines the setup process.