Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides Sls Etl available to the user.What is Etl
NOTE: Available since v1.258.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaulthhAPo6 = new alicloud.log.Project("defaulthhAPo6", {
description: "terraform-etl-example-813",
projectName: "terraform-etl-example-330",
});
const defaultzWKLkp = new alicloud.log.Store("defaultzWKLkp", {
hotTtl: 8,
retentionPeriod: 30,
shardCount: 2,
projectName: defaulthhAPo6.id,
logstoreName: "example",
});
const defaultEtl = new alicloud.sls.Etl("default", {
project: defaulthhAPo6.id,
description: "etl-1740472705-185721",
configuration: {
script: "* | extend a=1",
lang: "SPL",
roleArn: name,
sinks: [{
name: "11111",
endpoint: "cn-hangzhou-intranet.log.aliyuncs.com",
project: "gy-hangzhou-huolang-1",
logstore: "gy-rm2",
datasets: ["__UNNAMED__"],
roleArn: name,
}],
logstore: defaultzWKLkp.logstoreName,
fromTime: 1706771697,
toTime: 1738394097,
},
jobName: "etl-1740472705-185721",
displayName: "etl-1740472705-185721",
});
const _default = alicloud.sls.getEtlsOutput({
logstore: defaultzWKLkp.name,
project: defaulthhAPo6.id,
});
export const alicloudSlsEtlExampleId = _default.apply(_default => _default.etls?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
defaulthh_a_po6 = alicloud.log.Project("defaulthhAPo6",
description="terraform-etl-example-813",
project_name="terraform-etl-example-330")
defaultz_wk_lkp = alicloud.log.Store("defaultzWKLkp",
hot_ttl=8,
retention_period=30,
shard_count=2,
project_name=defaulthh_a_po6.id,
logstore_name="example")
default_etl = alicloud.sls.Etl("default",
project=defaulthh_a_po6.id,
description="etl-1740472705-185721",
configuration={
"script": "* | extend a=1",
"lang": "SPL",
"role_arn": name,
"sinks": [{
"name": "11111",
"endpoint": "cn-hangzhou-intranet.log.aliyuncs.com",
"project": "gy-hangzhou-huolang-1",
"logstore": "gy-rm2",
"datasets": ["__UNNAMED__"],
"role_arn": name,
}],
"logstore": defaultz_wk_lkp.logstore_name,
"from_time": 1706771697,
"to_time": 1738394097,
},
job_name="etl-1740472705-185721",
display_name="etl-1740472705-185721")
default = alicloud.sls.get_etls_output(logstore=defaultz_wk_lkp.name,
project=defaulthh_a_po6.id)
pulumi.export("alicloudSlsEtlExampleId", default.etls[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example";
if param := cfg.Get("name"); param != ""{
name = param
}
defaulthhAPo6, err := log.NewProject(ctx, "defaulthhAPo6", &log.ProjectArgs{
Description: pulumi.String("terraform-etl-example-813"),
ProjectName: pulumi.String("terraform-etl-example-330"),
})
if err != nil {
return err
}
defaultzWKLkp, err := log.NewStore(ctx, "defaultzWKLkp", &log.StoreArgs{
HotTtl: pulumi.Int(8),
RetentionPeriod: pulumi.Int(30),
ShardCount: pulumi.Int(2),
ProjectName: defaulthhAPo6.ID(),
LogstoreName: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = sls.NewEtl(ctx, "default", &sls.EtlArgs{
Project: defaulthhAPo6.ID(),
Description: pulumi.String("etl-1740472705-185721"),
Configuration: &sls.EtlConfigurationArgs{
Script: pulumi.String("* | extend a=1"),
Lang: pulumi.String("SPL"),
RoleArn: pulumi.String(name),
Sinks: sls.EtlConfigurationSinkArray{
&sls.EtlConfigurationSinkArgs{
Name: pulumi.String("11111"),
Endpoint: pulumi.String("cn-hangzhou-intranet.log.aliyuncs.com"),
Project: pulumi.String("gy-hangzhou-huolang-1"),
Logstore: pulumi.String("gy-rm2"),
Datasets: pulumi.StringArray{
pulumi.String("__UNNAMED__"),
},
RoleArn: pulumi.String(name),
},
},
Logstore: defaultzWKLkp.LogstoreName,
FromTime: pulumi.Int(1706771697),
ToTime: pulumi.Int(1738394097),
},
JobName: pulumi.String("etl-1740472705-185721"),
DisplayName: pulumi.String("etl-1740472705-185721"),
})
if err != nil {
return err
}
_default := sls.GetEtlsOutput(ctx, sls.GetEtlsOutputArgs{
Logstore: defaultzWKLkp.Name,
Project: defaulthhAPo6.ID(),
}, nil);
ctx.Export("alicloudSlsEtlExampleId", _default.ApplyT(func(_default sls.GetEtlsResult) (*string, error) {
return &default.Etls[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaulthhAPo6 = new AliCloud.Log.Project("defaulthhAPo6", new()
{
Description = "terraform-etl-example-813",
ProjectName = "terraform-etl-example-330",
});
var defaultzWKLkp = new AliCloud.Log.Store("defaultzWKLkp", new()
{
HotTtl = 8,
RetentionPeriod = 30,
ShardCount = 2,
ProjectName = defaulthhAPo6.Id,
LogstoreName = "example",
});
var defaultEtl = new AliCloud.Sls.Etl("default", new()
{
Project = defaulthhAPo6.Id,
Description = "etl-1740472705-185721",
Configuration = new AliCloud.Sls.Inputs.EtlConfigurationArgs
{
Script = "* | extend a=1",
Lang = "SPL",
RoleArn = name,
Sinks = new[]
{
new AliCloud.Sls.Inputs.EtlConfigurationSinkArgs
{
Name = "11111",
Endpoint = "cn-hangzhou-intranet.log.aliyuncs.com",
Project = "gy-hangzhou-huolang-1",
Logstore = "gy-rm2",
Datasets = new[]
{
"__UNNAMED__",
},
RoleArn = name,
},
},
Logstore = defaultzWKLkp.LogstoreName,
FromTime = 1706771697,
ToTime = 1738394097,
},
JobName = "etl-1740472705-185721",
DisplayName = "etl-1740472705-185721",
});
var @default = AliCloud.Sls.GetEtls.Invoke(new()
{
Logstore = defaultzWKLkp.Name,
Project = defaulthhAPo6.Id,
});
return new Dictionary<string, object?>
{
["alicloudSlsEtlExampleId"] = @default.Apply(@default => @default.Apply(getEtlsResult => getEtlsResult.Etls[0]?.Id)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.sls.Etl;
import com.pulumi.alicloud.sls.EtlArgs;
import com.pulumi.alicloud.sls.inputs.EtlConfigurationArgs;
import com.pulumi.alicloud.sls.SlsFunctions;
import com.pulumi.alicloud.sls.inputs.GetEtlsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaulthhAPo6 = new Project("defaulthhAPo6", ProjectArgs.builder()
.description("terraform-etl-example-813")
.projectName("terraform-etl-example-330")
.build());
var defaultzWKLkp = new Store("defaultzWKLkp", StoreArgs.builder()
.hotTtl(8)
.retentionPeriod(30)
.shardCount(2)
.projectName(defaulthhAPo6.id())
.logstoreName("example")
.build());
var defaultEtl = new Etl("defaultEtl", EtlArgs.builder()
.project(defaulthhAPo6.id())
.description("etl-1740472705-185721")
.configuration(EtlConfigurationArgs.builder()
.script("* | extend a=1")
.lang("SPL")
.roleArn(name)
.sinks(EtlConfigurationSinkArgs.builder()
.name("11111")
.endpoint("cn-hangzhou-intranet.log.aliyuncs.com")
.project("gy-hangzhou-huolang-1")
.logstore("gy-rm2")
.datasets("__UNNAMED__")
.roleArn(name)
.build())
.logstore(defaultzWKLkp.logstoreName())
.fromTime(1706771697)
.toTime(1738394097)
.build())
.jobName("etl-1740472705-185721")
.displayName("etl-1740472705-185721")
.build());
final var default = SlsFunctions.getEtls(GetEtlsArgs.builder()
.logstore(defaultzWKLkp.name())
.project(defaulthhAPo6.id())
.build());
ctx.export("alicloudSlsEtlExampleId", default_.applyValue(_default_ -> _default_.etls()[0].id()));
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaulthhAPo6:
type: alicloud:log:Project
properties:
description: terraform-etl-example-813
projectName: terraform-etl-example-330
defaultzWKLkp:
type: alicloud:log:Store
properties:
hotTtl: '8'
retentionPeriod: '30'
shardCount: '2'
projectName: ${defaulthhAPo6.id}
logstoreName: example
defaultEtl:
type: alicloud:sls:Etl
name: default
properties:
project: ${defaulthhAPo6.id}
description: etl-1740472705-185721
configuration:
script: '* | extend a=1'
lang: SPL
roleArn: ${name}
sinks:
- name: '11111'
endpoint: cn-hangzhou-intranet.log.aliyuncs.com
project: gy-hangzhou-huolang-1
logstore: gy-rm2
datasets:
- __UNNAMED__
roleArn: ${name}
logstore: ${defaultzWKLkp.logstoreName}
fromTime: '1706771697'
toTime: '1738394097'
jobName: etl-1740472705-185721
displayName: etl-1740472705-185721
variables:
default:
fn::invoke:
function: alicloud:sls:getEtls
arguments:
logstore: ${defaultzWKLkp.name}
project: ${defaulthhAPo6.id}
outputs:
alicloudSlsEtlExampleId: ${default.etls[0].id}
Using getEtls
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEtls(args: GetEtlsArgs, opts?: InvokeOptions): Promise<GetEtlsResult>
function getEtlsOutput(args: GetEtlsOutputArgs, opts?: InvokeOptions): Output<GetEtlsResult>def get_etls(ids: Optional[Sequence[str]] = None,
logstore: Optional[str] = None,
offset: Optional[int] = None,
output_file: Optional[str] = None,
project: Optional[str] = None,
size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetEtlsResult
def get_etls_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
logstore: Optional[pulumi.Input[str]] = None,
offset: Optional[pulumi.Input[int]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEtlsResult]func GetEtls(ctx *Context, args *GetEtlsArgs, opts ...InvokeOption) (*GetEtlsResult, error)
func GetEtlsOutput(ctx *Context, args *GetEtlsOutputArgs, opts ...InvokeOption) GetEtlsResultOutput> Note: This function is named GetEtls in the Go SDK.
public static class GetEtls
{
public static Task<GetEtlsResult> InvokeAsync(GetEtlsArgs args, InvokeOptions? opts = null)
public static Output<GetEtlsResult> Invoke(GetEtlsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEtlsResult> getEtls(GetEtlsArgs args, InvokeOptions options)
public static Output<GetEtlsResult> getEtls(GetEtlsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:sls/getEtls:getEtls
arguments:
# arguments dictionaryThe following arguments are supported:
- Logstore string
- Source Logstore Name.
- Project string
- Project Name
- Ids List<string>
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - Offset int
- Query start row. The default value is 0.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Size int
- Specify the number of data processing tasks returned by the query
- Logstore string
- Source Logstore Name.
- Project string
- Project Name
- Ids []string
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - Offset int
- Query start row. The default value is 0.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Size int
- Specify the number of data processing tasks returned by the query
- logstore String
- Source Logstore Name.
- project String
- Project Name
- ids List<String>
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - offset Integer
- Query start row. The default value is 0.
- output
File String - File name where to save data source results (after running
pulumi preview). - size Integer
- Specify the number of data processing tasks returned by the query
- logstore string
- Source Logstore Name.
- project string
- Project Name
- ids string[]
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - offset number
- Query start row. The default value is 0.
- output
File string - File name where to save data source results (after running
pulumi preview). - size number
- Specify the number of data processing tasks returned by the query
- logstore str
- Source Logstore Name.
- project str
- Project Name
- ids Sequence[str]
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - offset int
- Query start row. The default value is 0.
- output_
file str - File name where to save data source results (after running
pulumi preview). - size int
- Specify the number of data processing tasks returned by the query
- logstore String
- Source Logstore Name.
- project String
- Project Name
- ids List<String>
- A list of Etl IDs. The value is formulated as
<project>:<job_name>. - offset Number
- Query start row. The default value is 0.
- output
File String - File name where to save data source results (after running
pulumi preview). - size Number
- Specify the number of data processing tasks returned by the query
getEtls Result
The following output properties are available:
- Etls
List<Pulumi.
Ali Cloud. Sls. Outputs. Get Etls Etl> - A list of Etl Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Etl IDs.
- Logstore string
- Destination Logstore Name.
- Project string
- Target Project name.
- Offset int
- Output
File string - Size int
- Etls
[]Get
Etls Etl - A list of Etl Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Etl IDs.
- Logstore string
- Destination Logstore Name.
- Project string
- Target Project name.
- Offset int
- Output
File string - Size int
- etls
List<Get
Etls Etl> - A list of Etl Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Etl IDs.
- logstore String
- Destination Logstore Name.
- project String
- Target Project name.
- offset Integer
- output
File String - size Integer
- etls
Get
Etls Etl[] - A list of Etl Entries. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Etl IDs.
- logstore string
- Destination Logstore Name.
- project string
- Target Project name.
- offset number
- output
File string - size number
- etls
Sequence[Get
Etls Etl] - A list of Etl Entries. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Etl IDs.
- logstore str
- Destination Logstore Name.
- project str
- Target Project name.
- offset int
- output_
file str - size int
- etls List<Property Map>
- A list of Etl Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Etl IDs.
- logstore String
- Destination Logstore Name.
- project String
- Target Project name.
- offset Number
- output
File String - size Number
Supporting Types
GetEtlsEtl
- Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Get Etls Etl Configuration - Detailed configuration of data processing tasks
- Create
Time int - Task creation time. Example value: 1718787534
- Description string
- Data Processing Task Description
- Display
Name string - Data processing task display name
- Id string
- The ID of the resource supplied above.
- Job
Name string - Unique identification of data processing task
- Last
Modified intTime - The time when the task was last modified. Example value: 1718787681
- Schedule
Id string - The task ID. Example values:
- Status string
- Task Status
- Configuration
Get
Etls Etl Configuration - Detailed configuration of data processing tasks
- Create
Time int - Task creation time. Example value: 1718787534
- Description string
- Data Processing Task Description
- Display
Name string - Data processing task display name
- Id string
- The ID of the resource supplied above.
- Job
Name string - Unique identification of data processing task
- Last
Modified intTime - The time when the task was last modified. Example value: 1718787681
- Schedule
Id string - The task ID. Example values:
- Status string
- Task Status
- configuration
Get
Etls Etl Configuration - Detailed configuration of data processing tasks
- create
Time Integer - Task creation time. Example value: 1718787534
- description String
- Data Processing Task Description
- display
Name String - Data processing task display name
- id String
- The ID of the resource supplied above.
- job
Name String - Unique identification of data processing task
- last
Modified IntegerTime - The time when the task was last modified. Example value: 1718787681
- schedule
Id String - The task ID. Example values:
- status String
- Task Status
- configuration
Get
Etls Etl Configuration - Detailed configuration of data processing tasks
- create
Time number - Task creation time. Example value: 1718787534
- description string
- Data Processing Task Description
- display
Name string - Data processing task display name
- id string
- The ID of the resource supplied above.
- job
Name string - Unique identification of data processing task
- last
Modified numberTime - The time when the task was last modified. Example value: 1718787681
- schedule
Id string - The task ID. Example values:
- status string
- Task Status
- configuration
Get
Etls Etl Configuration - Detailed configuration of data processing tasks
- create_
time int - Task creation time. Example value: 1718787534
- description str
- Data Processing Task Description
- display_
name str - Data processing task display name
- id str
- The ID of the resource supplied above.
- job_
name str - Unique identification of data processing task
- last_
modified_ inttime - The time when the task was last modified. Example value: 1718787681
- schedule_
id str - The task ID. Example values:
- status str
- Task Status
- configuration Property Map
- Detailed configuration of data processing tasks
- create
Time Number - Task creation time. Example value: 1718787534
- description String
- Data Processing Task Description
- display
Name String - Data processing task display name
- id String
- The ID of the resource supplied above.
- job
Name String - Unique identification of data processing task
- last
Modified NumberTime - The time when the task was last modified. Example value: 1718787681
- schedule
Id String - The task ID. Example values:
- status String
- Task Status
GetEtlsEtlConfiguration
- From
Time int - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- Lang string
- Data processing syntax type.
- Logstore string
- Source Logstore Name.
- Parameters Dictionary<string, string>
- Advanced parameter configuration.
- Role
Arn string - The ARN role that authorizes writing to the target Logstore.
- Script string
- Processing script.
- Sinks
List<Pulumi.
Ali Cloud. Sls. Inputs. Get Etls Etl Configuration Sink> - Processing result output target list.
- To
Time int - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
- From
Time int - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- Lang string
- Data processing syntax type.
- Logstore string
- Source Logstore Name.
- Parameters map[string]string
- Advanced parameter configuration.
- Role
Arn string - The ARN role that authorizes writing to the target Logstore.
- Script string
- Processing script.
- Sinks
[]Get
Etls Etl Configuration Sink - Processing result output target list.
- To
Time int - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
- from
Time Integer - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- lang String
- Data processing syntax type.
- logstore String
- Source Logstore Name.
- parameters Map<String,String>
- Advanced parameter configuration.
- role
Arn String - The ARN role that authorizes writing to the target Logstore.
- script String
- Processing script.
- sinks
List<Get
Etls Etl Configuration Sink> - Processing result output target list.
- to
Time Integer - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
- from
Time number - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- lang string
- Data processing syntax type.
- logstore string
- Source Logstore Name.
- parameters {[key: string]: string}
- Advanced parameter configuration.
- role
Arn string - The ARN role that authorizes writing to the target Logstore.
- script string
- Processing script.
- sinks
Get
Etls Etl Configuration Sink[] - Processing result output target list.
- to
Time number - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
- from_
time int - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- lang str
- Data processing syntax type.
- logstore str
- Source Logstore Name.
- parameters Mapping[str, str]
- Advanced parameter configuration.
- role_
arn str - The ARN role that authorizes writing to the target Logstore.
- script str
- Processing script.
- sinks
Sequence[Get
Etls Etl Configuration Sink] - Processing result output target list.
- to_
time int - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
- from
Time Number - Processing time start timestamp (accurate to the second). Enter 0 when the first log received from the source Logstore is consumed.
- lang String
- Data processing syntax type.
- logstore String
- Source Logstore Name.
- parameters Map<String>
- Advanced parameter configuration.
- role
Arn String - The ARN role that authorizes writing to the target Logstore.
- script String
- Processing script.
- sinks List<Property Map>
- Processing result output target list.
- to
Time Number - Processing time end timestamp (accurate to seconds). When continuous consumption is stopped manually, fill in 0.
GetEtlsEtlConfigurationSink
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
