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
- Clone the repository.
- Initialize Terraform:
terraform init
1 - Apply the Terraform configuration:
terraform apply
1
Requirements
Name | Version |
---|---|
aws | 5.65.0 |
null | 3.2.2 |
stackit | 0.37.1 |
Modules
No modules.
Resources
Name | Type |
---|---|
null_resource.create_user | resource |
null_resource.project_admin | resource |
null_resource.project_editor | resource |
null_resource.project_reader | resource |
stackit_resourcemanager_project.projects | resource |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
api_url | Base API URL | string | "https://authorization.api.stackit.cloud" | no |
aws_account_id | this is for the tfstates Backend. in our case AWS. | string | n/a | yes |
organization_id | id of the organization | string | n/a | yes |
parent_container_id | The stackit Cloud parent container id for the project | string | n/a | yes |
project_id | Projects last block in name | string | n/a | yes |
token | Bearer token for authentication | string | n/a | yes |
users | Users and their roles provided by meshStack (Note that users must exist in stackit) | list(object( | n/a | yes |
workspace_id | Projects first block in name | string | n/a | yes |
Outputs
Name | Description |
---|---|
stackit_login_link | n/a |
tenant_id | n/a |
Source code & Installation
The source code of this kit module can be found here
Run the following command to install the kit module:
collie kit import stackit/buildingblocks/projects/buildingblock
1