arvancloud_iaas_backup_s3_providers (Data Source)
Lists available S3 storage providers for backup uploads. Specify provider_id to retrieve detailed region and bucket information for a specific provider. Without provider_id, returns a summary list of all available providers.
Example Usage
# List all available S3 providers
data "arvancloud_iaas_backup_s3_providers" "all" {}
# Get detailed information for a specific S3 provider
data "arvancloud_iaas_backup_s3_providers" "specific" {
provider_id = "provider-1"
}
output "all_providers" {
value = [for p in data.arvancloud_iaas_backup_s3_providers.all.providers : p.name_en]
}
output "default_provider" {
value = [for p in data.arvancloud_iaas_backup_s3_providers.all.providers : p.name_en if p.default]
}
output "provider_regions" {
value = length(data.arvancloud_iaas_backup_s3_providers.specific.providers) > 0 ? data.arvancloud_iaas_backup_s3_providers.specific.providers[0].regions : []
}
output "available_buckets" {
value = length(data.arvancloud_iaas_backup_s3_providers.specific.providers) > 0 && length(data.arvancloud_iaas_backup_s3_providers.specific.providers[0].regions) > 0 ? data.arvancloud_iaas_backup_s3_providers.specific.providers[0].regions[0].buckets : []
}
Schema
Optional
provider_id(String) Optional filter to retrieve detailed information for a specific S3 provider. When specified, theregionsattribute will be populated with region and bucket details.
Read-Only
id(String) Unique identifier for this datasource query.providers(Attributes List) List of available S3 storage providers. (see below for nested schema)
Nested Schema for providers
Read-Only:
default(Boolean) Whether this is the default S3 provider.id(String) Unique identifier for the S3 provider.logo(String) URL to the provider's logo image.name_en(String) Provider name in English.name_fa(String) Provider name in Persian (Farsi).regions(Attributes List) List of regions available for this provider. Only populated whenprovider_idfilter is specified. (see below for nested schema)
Nested Schema for providers.regions
Read-Only:
buckets(List of String) List of available bucket names in this region.code(String) Region code for API requests (e.g.ir-thr-at1).label(String) Human-readable region label (e.g.simin).name(String) Region name (e.g.asiatech).