All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::SLS::Etl

Last Updated:Aug 25, 2026

The ALIYUN::SLS::Etl resource type creates a data transformation job.

Syntax

{
  "Type": "ALIYUN::SLS::Etl",
  "Properties": {
    "Description": String,
    "Configuration": Map,
    "ProjectName": String,
    "Schedule": Map,
    "DisplayName": String,
    "Name": String
  }
}

Properties

PropertyTypeRequiredUpdate allowedDescriptionConstraints
DescriptionStringNoNoThe description of the data transformation job.None
ConfigurationMapYesNoThe configuration of the data transformation job.For more information, see Configuration properties.
ProjectNameStringYesNoThe target Log Project for the data transformation job.None
ScheduleMapYesNoThe scheduling policy for the data transformation job.For more information, see Schedule properties.
DisplayNameStringYesNoThe display name of the data transformation job.None
NameStringYesNoThe name of the data transformation job.None

Configuration syntax

"Configuration": {
  "Script": String,
  "Sinks": List,
  "Parameters": Map,
  "ToTime": Number,
  "Version": Number,
  "Logstore": String,
  "FromTime": Number,
  "RoleArn": String
}

Configuration properties

Property NameTypeRequiredUpdate allowedDescriptionConstraints
ScriptStringYesNoThe script for the data transformation job.None
SinksListYesNoThe destination configurations for the data transformation job.Destinations include projects and Logstores.

For more information, see Sinks properties.

ParametersMapNoNoThe advanced parameter settings for the data transformation job.None
ToTimeNumberNoNoThe end time of the data transformation job.Default value: None.
VersionNumberNoNoThe script version for the data transformation job.None
LogstoreStringYesNoThe Logstore for the data transformation job (source Logstore).None
FromTimeNumberNoNoThe start time of the data transformation job.The job starts from the current time by default.
RoleArnStringNoNoThe STS role for the data transformation job's target Logstore.None

Sinks syntax

"Sinks": [
  {
    "Project": String,
    "Type": String,
    "Endpoint": String,
    "Logstore": String,
    "RoleArn": String,
    "Name": String
  }
]

Sinks properties

Property NameTypeRequiredUpdate allowedDescriptionConstraints
ProjectStringYesNoSpecifies the target Log project for the data transformation Job.None
TypeStringNoNoThe type of the destination for the data transformation job.Destinations include projects and Logstores.

Default value: AliyunLOG.

EndpointStringNoNoThe server-side endpoint of the destination log project for the data transformation job.None
LogstoreStringYesNoThe destination Logstore for the data transformation job.None
RoleArnStringNoNoThe ARN of the RAM role that the data transformation job assumes to write data to the destination Logstore.None
NameStringYesNoThe name of the destination for the data transformation job.Destinations include projects and Logstores.

Schedule syntax

"Schedule": {
  "Type": String
}

Schedule properties

Property NameTypeRequiredUpdate allowedDescriptionConstraints
TypeStringYesNoThe type of the scheduling policy for the data transformation job.Value: Resident.

Return value

Fn::GetAtt

Name: The name of the data transformation job.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Etl:
        Type: ALIYUN::SLS::Etl
        Properties:
          Configuration:
            Logstore: actiontrail_log
            Parameters:
              test_key: test value
            RoleArn: acs:ram::17545809XXXXXXX:role/aliyunlogetlrole
            Script: |-
              e_json("event")
              e_drop_fields("event")
            Sinks:
              - Name: drds_service
                Project: test-project
                Logstore: drds_service_audit
                RoleArn: acs:ram::17545809XXXXXXX:role/aliyunlogetlrole
                Endpoint: cn-beijing-intranet.log.aliyuncs.com
                Type: AliyunLOG
              - Name: rds_service
                Project: test-project
                Logstore: rds_service_audit
                RoleArn: acs:ram::17545809XXXXXXX:role/aliyunlogetlrole
            Version: 2
          ProjectName: sls-audit
          Schedule:
            Type: Resident
          DisplayName: test_etl
          Name: test_etl_api
    Outputs:
      Name:
        Description: ETL name.
        Value:
          Fn::GetAtt:
            - Etl
            - Name
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Etl": {
          "Type": "ALIYUN::SLS::Etl",
          "Properties": {
            "Configuration": {
              "Logstore": "actiontrail_log",
              "Parameters": {
                "test_key": "test value"
              },
              "RoleArn": "acs:ram::17545809XXXXXXX:role/aliyunlogetlrole",
              "Script": "e_json(\"event\")\ne_drop_fields(\"event\")",
              "Sinks": [
                {
                  "Name": "drds_service",
                  "Project": "test-project",
                  "Logstore": "drds_service_audit",
                  "RoleArn": "acs:ram::17545809XXXXXXX:role/aliyunlogetlrole",
                  "Endpoint": "cn-beijing-intranet.log.aliyuncs.com",
                  "Type": "AliyunLOG"
                },
                {
                  "Name": "rds_service",
                  "Project": "test-project",
                  "Logstore": "rds_service_audit",
                  "RoleArn": "acs:ram::17545809XXXXXXX:role/aliyunlogetlrole"
                }
              ],
              "Version": 2
            },
            "ProjectName": "sls-audit",
            "Schedule": {
              "Type": "Resident"
            },
            "DisplayName": "test_etl",
            "Name": "test_etl_api"
          }
        }
      },
      "Outputs": {
        "Name": {
          "Description": "ETL name.",
          "Value": {
            "Fn::GetAtt": [
              "Etl",
              "Name"
            ]
          }
        }
      }
    }