Storage
Provision S3-compatible buckets, object stores, and block storage volumes using the NetActuate Terraform provider v2.
Repository
git clone https://github.com/netactuate/netactuate-terraform-storage
cd netactuate-terraform-storage
Storage Locations
Storage locations differ from compute locations. Use the data source to list available regions:
data "netactuate_storage_locations" "available" {}
output "storage_locations" {
value = data.netactuate_storage_locations.available.locations
}
Note: Not all compute locations offer storage. For example, LAX is not available as a storage location. Always verify availability with the data source before deploying.
S3 Buckets
Create an S3-compatible storage bucket:
resource "netactuate_storage_bucket" "data" {
label = "app-data-bucket"
location = "SJC"
}
Key attributes:
label-- Globally unique bucket namelocation-- Storage location code
Exported attributes include the bucket endpoints list for S3 API access.
Object Stores
Provision an object store with access credentials:
resource "netactuate_storage_object_store" "media" {
label = "media-store"
location = "AMS"
}
output "object_store_endpoints" {
value = netactuate_storage_object_store.media.endpoints
}
output "object_store_access_key" {
value = netactuate_storage_object_store.media.access_key
sensitive = true
}
output "object_store_secret_key" {
value = netactuate_storage_object_store.media.secret_key
sensitive = true
}
The object store resource outputs credentials (access_key and secret_key) and an endpoints list for use with S3-compatible clients.
Block Storage
Namespace
Block storage volumes are organized within namespaces:
resource "netactuate_storage_block_namespace" "apps" {
label = "app-storage"
location = "SJC"
}
Volume
Create block storage volumes within a namespace:
resource "netactuate_storage_block_volume" "db" {
label = "database-vol"
location = "SJC"
capacity = 100
}
Key attributes:
label-- Volume namelocation-- Storage location codecapacity-- Volume size in gigabytes
Need Help?
If you need assistance with storage configuration, visit our support page.