Plan Management

The Shipa provider for Terraform allows you to manage the resource plans that can be automatically bound to applications at both deployment and post-deployment time.

Creating Plans

terraform {
  required_providers {
    shipa = {
      version = "0.0.6"
      source = "shipa-corp/shipa"
    }
  }
}

provider "shipa" {
  host = "http://target.shipa.cloud:8080"
  token = "<your-shipa-token>"
}

resource "shipa_plan" "tf" {
  plan {
    name = "terraform-plan"
    teams = ["dev"]
    cpushare = 4
    memory = 128M
    swap = 0
  }
}

Top-Level Attributes

Component

Description

Type

resource

shipa_plan is Shipa's Terraform component for managing resource plans.

string

plan

Defines the plan settings

Plan

Component

Description

Type

name

The name that should be assign to the plan.

Required: Yes

string

teams

The teams that should have access to this plan when deploying applications.

Required: Yes

string

cpushare

The amount of CPU resources that should be assigned to the application as limit

Required: Yes

int

memory

The amount of memory resources that should be assigned to the application as limit

Examples are 1M, 1G

Required: Yes

string

swap

The amount of swap resources that should be assigned to the application as limit

Examples are 1M, 1G

Required: No
Condition: Only available for frameworks bound to Shipa nodes, not Kubernetes

string


Did this page help you?