All Products
Search
Document Center

Realtime Compute for Apache Flink:Terraform

Last Updated:Oct 12, 2026

Realtime Compute for Apache Flink integrates with Terraform, allowing you to provision and manage Flink resources as code.

Background information

Basic features

Terraform is an Infrastructure as Code (IaC) tool that lets you define and configure cloud infrastructure through code instead of manual operations. For more information, see What is Alibaba Cloud Terraform?

  • Terraform provides an easy-to-use CLI that allows you to deploy configuration files on the workloads of Alibaba Cloud services or third-party cloud services and manage the versions of the configuration files. Terraform allows you to define the infrastructure resources that are required to build cloud topologies in configuration files. The resources include virtual machines (VMs), storage accounts, and network interfaces.

  • Terraform uses providers to support new infrastructure. You can use a simple template language to define, preview, and deploy cloud infrastructure on Alibaba Cloud.

  • Terraform allows you to create, modify, and delete the resources of multiple Alibaba Cloud services, such as Elastic Compute Services (ECS), Virtual Private Cloud (VPC), ApsaraDB RDS, and Server Load Balancer (SLB).

Scenarios

Terraform allows you to define infrastructure as code and use code to create, query, modify, and delete infrastructure resources. For information about the examples on how to use Terraform to manage the resources of Alibaba Cloud services, see Scenarios.

Benefits

For more information about the benefits of Terraform in common scenarios, see What is Alibaba Cloud Terraform?.

When used with Realtime Compute for Apache Flink, Terraform provides the following benefits:

  • Declarative Infrastructure as Code

    • Supports workspace management.

    • Write infrastructure code without interacting directly with APIs.

  • Terraform ecosystem

    • LiveDiff capability for safer management of Realtime Compute for Apache Flink resources.

    • Stable convergence to the desired deployment state.

    • Deploy Realtime Compute for Apache Flink and required cloud resources in a single configuration, improving the efficiency of website building.

Install and configure Terraform

Only Alibaba Cloud Terraform Provider (alicloud) 1.214.0 and later support managing Realtime Compute for Apache Flink resources. For the minimum provider version required by each resource and data source, see the following tables.

Manage resources using Terraform

The following table lists the Realtime Compute for Apache Flink resources you can manage with Terraform.

Resource type

Description

Minimum provider version

alicloud_realtime_compute_vvp_instance

Workspace resources. Configuring auto-renewal for subscription instances requires Provider 1.293.0 or later.

1.214.0

alicloud_realtime_compute_job

Job instance resources.

1.265.0

alicloud_realtime_compute_deployment

Deployed job resources.

1.265.0

alicloud_realtime_compute_member

Member resources.

1.292.0

alicloud_realtime_compute_sql_file

SQL script resources.

1.292.0

alicloud_realtime_compute_variable

Variable resources.

1.294.0

The following table lists the data sources you can query with Terraform.

Data source type

Description

Minimum provider version

alicloud_realtime_compute_members

Query members.

1.292.0

alicloud_realtime_compute_sql_files

Query SQL scripts.

1.292.0

alicloud_realtime_compute_variables

Query variables.

1.294.0