terraform-provider-akp

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

README

Terraform logo

Terraform Provider for Akuity Platform

Tests

With this provider you can manage Argo CD instances and clusters on Akuity Platform.

Requirements

Typical use case

Add a new cluster test-cluster to the existing Argo CD instance manualy-created and install the agent to the configured cluster.

  1. Create an API key for your organization
    • Use Admin role for the key
  2. Configure Environment variables
    export AKUITY_API_KEY_ID=<key-id>
    export AKUITY_API_KEY_SECRET=<key-secret>
    
  3. Use this or similar configuration:
    terraform {
        required_providers {
            akp = {
                source = "akuity/akp"
                version = "~> 0.2"
            }
        }
    }
    
    provider "akp" {
        org_name = "<organization-name>"
    }
    
    # Read the existing Argo CD Instance
    data "akp_instance" "existing" {
        name = "manualy-created"
    }
    
    # Add cluster to the existing instance and install the agent
    resource "akp_cluster" "test" {
        name             = "test-cluster"
        description      = "Test Cluster 1"
        namespace        = "akuity"
        instance_id      = data.akp_instance.existing.id
        kube_config      = {
            # Configuration similar to `kubernetes` provider
        }
    }
    
    
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
akp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL