All Products
Search
Document Center

Object Storage Service:Terraform

Last Updated:Oct 25, 2025

Terraform is an open source tool for automated resource orchestration that supports multiple cloud service providers, including Alibaba Cloud. The terraform-alicloud-provider supports more than 90 resources and data sources across over 20 services and products, attracting many developers to the Alibaba Cloud Terraform ecosystem.

HashiCorp Terraform is an IT infrastructure automation and orchestration tool. It lets you manage and maintain IT resources using code. Terraform uses configuration files to define your infrastructure. These files describe the topology of your cloud resources, such as virtual machines, storage accounts, and network interfaces. The Terraform command-line interface (CLI) provides a simple way to deploy these configuration files to Alibaba Cloud or any other supported cloud. The CLI also provides versioning for the files. Terraform is a highly extensible tool that uses providers to support new infrastructure. You can use Terraform to create, modify, or delete various resources, such as OSS, ECS, VPC, RDS, and SLB.

OSS Terraform Module features

The Terraform module for OSS provides features for managing buckets and objects, such as:

  • Bucket management:

    • Create buckets

    • Set bucket ACLs

    • Set bucket CORS

    • Set bucket logging

    • Configure static website hosting for buckets

    • Set bucket Referer whitelists

    • Set bucket lifecycle rules

  • Object management:

    • Upload files

    • Set server-side encryption for files

    • Set ACLs

    • Set object metadata

References