ankra-terraform

Declare Ankra clusters, stacks, addons, credentials, and tokens in Terraform.

26|2|Updated Jul 11, 2025
One-click install
npx skills add https://github.com/ankraio/ankra-cli --skill ankra-terraform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ankra-terraform
Source: https://github.com/ankraio/ankra-cli/tree/main/internal/skills/embedded/skills/ankra-terraform
Command: npx skills add https://github.com/ankraio/ankra-cli --skill ankra-terraform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates provisioning and reconciliation of Ankra resources (clusters, stacks, addons, credentials, and tokens) by declaring them in Terraform, enabling infrastructure as code and versioned configuration.

Core Features & Use Cases

  • Declare Ankra resources in HCL and reconcile with terraform apply using the Ankra provider.
  • Manage clusters, stacks, addons, credentials, and tokens as part of a unified IaC workflow across environments.
  • Use Case: Reprovision a full Ankra environment from code to ensure consistent deployments.

Quick Start

Initialize Terraform, configure the Ankra provider with a scoped API token, and run terraform init followed by terraform plan and terraform apply.

Frequently Asked Questions about ankra-terraform

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

FAQPage Schema
How do I manage Kubernetes clusters and addons as infrastructure as code?

You can manage Kubernetes clusters and addons as infrastructure as code by declaring Ankra resources in Terraform HCL and reconciling them with terraform apply using the Ankra provider.

Can I use Terraform to provision Ankra stacks across multiple environments?

Yes, Terraform can provision Ankra stacks across multiple environments by declaring clusters, stacks, addons, credentials, and tokens in versioned configuration for reproducible deployments.

How do I configure the Ankra Terraform provider for authentication?

Configure the Ankra Terraform provider by supplying a scoped API token via the ANKRA_API_TOKEN environment variable or a Terraform variable backed by a secret store, then run terraform init.

What is the best way to reproduce a full Ankra environment from code?

The best way to reproduce a full Ankra environment from code is to declare all clusters, stacks, and addons in Terraform HCL and apply the configuration to ensure consistent deployments.

Does managing Ankra resources with Terraform support drift reconciliation?

Yes, managing Ankra resources with Terraform supports drift reconciliation by running terraform apply to detect and correct configuration drift against the declared HCL state.

Do I need a specific Terraform provider source to manage Ankra resources?

Yes, you need to configure the Ankra provider with the source ankraio/ankra in your Terraform configuration to declare and manage Ankra resources as code.