This topic describes the types of Resource Orchestration Service (ROS) events that can be published to EventBridge.

Event types

The following table describes the types of ROS events that can be published to EventBridge.

Event type Value of the type parameter
Operations performed by Alibaba Cloud on resources ros:ActionTrail:AliyunServiceEvent
API operation calls ros:ActionTrail:ApiCall
Operations performed in the console ros:ActionTrail:ConsoleOperation
A stack is checked ros:StackStateChange:CheckComplete
A stack fails to be checked ros:StackStateChange:CheckFailed
A stack is checked ros:StackStateChange:CreateComplete
A stack fails to be created ros:StackStateChange:CreateFailed
A rollback is performed after a stack fails to be created ros:StackStateChange:CreateRollbackComplete
A rollback fails to be performed after a stack fails to be created ros:StackStateChange:CreateRollbackFailed
A stack is deleted ros:StackStateChange:DeleteComplete
A stack fails to be deleted ros:StackStateChange:DeleteFailed
A stack is created by importing resources ros:StackStateChange:ImportCreateComplete
A stack fails to be created by importing resources ros:StackStateChange:ImportCreateFailed
A rollback is performed after a stack fails to be created by importing resources ros:StackStateChange:ImportCreateRollbackComplete
A rollback fails to be performed after a stack fails to be created by importing resources ros:StackStateChange:ImportCreateRollbackFailed
A stack is updated by importing resources ros:StackStateChange:ImportUpdateComplete
A stack fails to be updated by importing resources ros:StackStateChange:ImportUpdateFailed
A rollback is performed after a stack fails to be updated by importing resources ros:StackStateChange:ImportUpdateRollbackComplete
A rollback fails to be performed after a stack fails to be updated by importing resources ros:StackStateChange:ImportUpdateRollbackFailed
A stack is rolled back ros:StackStateChange:RollbackComplete
A stack fails to be rolled back ros:StackStateChange:RollbackFailed
A stack is updated ros:StackStateChange:UpdateComplete
A stack fails to be updated ros:StackStateChange:UpdateFailed

For more information about the parameters defined in the CloudEvents specification, see Overview.

A stack is checked

The following example shows the event that EventBridge receives when a stack is checked:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CheckComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CHECK_COMPLETE",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CHECK_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack fails to be checked

The following example shows the event that EventBridge receives when a stack fails to be checked:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CheckFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CHECK_FAILED",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CHECK_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack is created

The following example shows the event that EventBridge receives when a stack is created:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CreateComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CREATE_COMPLETE",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CREATE_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack fails to be created

The following example shows the event that EventBridge receives when a stack fails to be created:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CreateFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CREATE_FAILED",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CREATE_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A rollback is performed after a stack fails to be created

The following example shows the event that EventBridge receives when a rollback is performed after a stack fails to be created:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CreateRollbackComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CREATE_ROLLBACK_COMPLETE",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CREATE_ROLLBACK_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A rollback fails to be performed after a stack fails to be created

The following example shows the event that EventBridge receives when a rollback fails to be performed after a stack fails to be created:

{
    "id":"5f39a410-0477-4e9f-bba6-538d726d****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:CreateRollbackFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2020-12-31T09:46:10Z",
    "data":{
        "Status":"CREATE_ROLLBACK_FAILED",
        "Outputs":[

        ],
        "StackName":"test-stack",
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2020-12-31T17:46:10.813Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String CREATE_ROLLBACK_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack is deleted

The following example shows the event that EventBridge receives when a stack is deleted:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:DeleteComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"DELETE_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String DELETE_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack fails to be deleted

The following example shows the event that EventBridge receives when a stack fails to be deleted:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:DeleteFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"DELETE_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String DELETE_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack is created by importing resources

The following example shows the event that EventBridge receives when a stack is created by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportCreateComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_CREATE_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_CREATE_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack fails to be created by importing resources

The following example shows the event that EventBridge receives when a stack fails to be created by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportCreateFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_CREATE_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_CREATE_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A rollback is performed after a stack fails to be created by importing resources

The following example shows the event that EventBridge receives when a rollback is performed after a stack fails to be created by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportCreateRollbackComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_CREATE_ROLLBACK_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_CREATE_ROLLBACK_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A rollback fails to be performed after a stack fails to be created by importing resources

The following example shows the event that EventBridge receives when a rollback fails to be performed after a stack fails to be created by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportCreateRollbackFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_CREATE_ROLLBACK_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_CREATE_ROLLBACK_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack is updated by importing resources

The following example shows the event that EventBridge receives when a stack is updated by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportUpdateComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_UPDATE_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_UPDATE_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack fails to be updated by importing resources

The following example shows the event that EventBridge receives when a stack fails to be updated by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportUpdateFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_UPDATE_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_UPDATE_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A rollback is performed after a stack fails to be updated by importing resources

The following example shows the event that EventBridge receives when a rollback is performed after a stack fails to be updated by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportUpdateRollbackComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_UPDATE_ROLLBACK_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_UPDATE_ROLLBACK_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A rollback fails to be performed after a stack fails to be updated by importing resources

The following example shows the event that EventBridge receives when a rollback fails to be performed after a stack fails to be updated by importing resources:

{
    "id":"5c6a640d-75d3-432d-8409-89b23763****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:ImportUpdateRollbackFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/47560378-1287-404d-bf2e-26b4b641****",
    "time":"2021-01-04T12:35:19Z",
    "data":{
        "StackId":"47560378-1287-404d-bf2e-26b4b641****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"IMPORT_UPDATE_ROLLBACK_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-04T20:35:19.75Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String IMPORT_UPDATE_ROLLBACK_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String 47560378-1287-404d-bf2e-26b4b641**** The ID of the stack.

A stack is rolled back

The following example shows the event that EventBridge receives when a stack is rolled back:

{
    "id":"e9bd42ea-5fb1-4be6-8168-60b8d3ef****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:RollbackComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2021-01-05T09:21:23Z",
    "data":{
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"ROLLBACK_COMPLETE"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-05T17:21:23.632Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String ROLLBACK_COMPLETE The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack fails to be rolled back

The following example shows the event that EventBridge receives when a stack fails to be rolled back:

{
    "id":"e9bd42ea-5fb1-4be6-8168-60b8d3ef****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:RollbackFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b33a8fa5-0ba8-43cf-8036-0bd3339e****",
    "time":"2021-01-05T09:21:23Z",
    "data":{
        "StackId":"b33a8fa5-0ba8-43cf-8036-0bd3339e****",
        "StackName":"test-stack",
        "Outputs":[

        ],
        "Status":"ROLLBACK_FAILED"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-05T17:21:23.632Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String ROLLBACK_FAILED The status of the stack.
Outputs Struct N/A The output parameter of the stack.
StackName String test-stack The name of the stack.
StackId String b33a8fa5-0ba8-43cf-8036-0bd3339e**** The ID of the stack.

A stack is updated

The following example shows the event that EventBridge receives when a stack is updated:

{
    "id":"238dbcdc-5b6b-450c-b95c-1142020e****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:UpdateComplete",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b0bb2844-da77-4ceb-afe9-7dd6a97d****",
    "time":"2021-01-05T09:56:54Z",
    "data":{
        "Status":"UPDATE_COMPLETE",
        "Outputs":[
            {
                "Description":"No description given",
                "OutputKey":"VpcId",
                "OutputValue":"vpc-bp1hbjc1vugq7ubod****"
            }
        ],
        "StackName":"test-stack",
        "StackId":"b0bb2844-da77-4ceb-afe9-7dd6a97d****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-05T17:56:54.875Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String ROLLBACK_COMPLETE The status of the stack.
Outputs Struct The output parameter of the stack.
Description String No description given The description of the output parameter.
OutputKey String VpcId The name of the output parameter.
OutputValue String vpc-bp1hbjc1vugq7ubod**** The value of the output parameter.
StackName String test-stack The name of the stack.
StackId String b0bb2844-da77-4ceb-afe9-7dd6a97d**** The ID of the stack.

A stack fails to be updated

The following example shows the event that EventBridge receives when a stack fails to be updated:

{
    "id":"238dbcdc-5b6b-450c-b95c-1142020e****",
    "source":"acs.ros",
    "specversion":"1.0",
    "type":"ros:StackStateChange:UpdateFailed",
    "datacontenttype":"application/json; charset=utf-8",
    "subject":"acs:ros:cn-hangzhou:123456789098****:stack/b0bb2844-da77-4ceb-afe9-7dd6a97d****",
    "time":"2021-01-05T09:56:54Z",
    "data":{
        "Status":"UPDATE_FAILED",
        "Outputs":[
            {
                "Description":"No description given",
                "OutputKey":"VpcId",
                "OutputValue":"vpc-bp1hbjc1vugq7ubod****"
            }
        ],
        "StackName":"test-stack",
        "StackId":"b0bb2844-da77-4ceb-afe9-7dd6a97d****"
    },
    "aliyunaccountid":"123456789098****",
    "aliyuneventbusname":"default",
    "aliyunpublishtime":"2021-01-05T17:56:54.875Asia/Shanghai",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
Status String UPDATE_FAILED The status of the stack.
Outputs Struct The output parameter of the stack.
Description String No description given The description of the output parameter.
OutputKey String VpcId The name of the output parameter.
OutputValue String vpc-bp1hbjc1vugq7ubod**** The value of the output parameter.
StackName String test-stack The name of the stack.
StackId String b0bb2844-da77-4ceb-afe9-7dd6a97d**** The ID of the stack.