Terraform OVH Project

This Terraform project is used to manage resources in the Stackit cloud platform. It provisions projects, manages users, and configures necessary providers.

Prerequisites

  • Terraform v1.0.0 or later
  • AWS credentials configured for the backend
  • Stackit service account token

Providers

This project uses the following providers:

  • stackit: Manages resources in the Stackit cloud platform.
  • aws: Manages resources in AWS.
  • null: Provides null resources for triggering local-exec provisioners.

Usage

  1. Clone the repository.
  2. Initialize Terraform:
    terraform init
    
    1
  3. Apply the Terraform configuration:
    terraform apply
    
    1

Requirements

NameVersion
aws5.65.0
null3.2.2
stackit0.37.1

Modules

No modules.

Resources

NameType
null_resource.create_useropen in new windowresource
null_resource.project_adminopen in new windowresource
null_resource.project_editoropen in new windowresource
null_resource.project_readeropen in new windowresource
stackit_resourcemanager_project.projectsopen in new windowresource

Inputs

NameDescriptionTypeDefaultRequired
api_urlBase API URLstring"https://authorization.api.stackit.cloud"no
aws_account_idthis is for the tfstates Backend. in our case AWS.stringn/ayes
organization_idid of the organizationstringn/ayes
parent_container_idThe stackit Cloud parent container id for the projectstringn/ayes
project_idProjects last block in namestringn/ayes
tokenBearer token for authenticationstringn/ayes
usersUsers and their roles provided by meshStack (Note that users must exist in stackit)
list(object(
{
meshIdentifier = string
username = string
firstName = string
lastName = string
email = string
euid = string
roles = list(string)
}
))
n/ayes
workspace_idProjects first block in namestringn/ayes

Outputs

NameDescription
stackit_login_linkn/a
tenant_idn/a

Source code & Installation

The source code of this kit module can be found hereopen in new window

Run the following command to install the kit module:

collie kit import stackit/buildingblocks/projects/buildingblock
1