All Products
Search
Document Center

:ROS events

最終更新日:Feb 01, 2024

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

A stack is checked

ros:StackStateChange:CheckComplete

A stack fails to be checked

ros:StackStateChange:CheckFailed

A stack is created

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

The status of a stack is changed

ros:Stack:StatusChange

An operation is performed on a resource

ros:ActionTrail:AliyunServiceEvent

An API operation is called

ros:ActionTrail:ApiCall

An operation is performed in the console

ros:ActionTrail:ConsoleOperation

The operation status of a stack group is changed

ros:CloudMonitor:StackGroup[OperationStatusChange]

The status of a resource in a stack is changed

ros:CloudMonitor:StackResource[StatusChange]

The status of a stack is changed

ros:CloudMonitor:Stack[StatusChange]

A resource change notification is delivered

ros:Config:ConfigurationItemChangeNotification

A notification that indicates a resource is evaluated as non-compliant is delivered

ros:Config:NonCompliantNotification

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CHECK_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CHECK_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CREATE_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CREATE_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CREATE_ROLLBACK_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

CREATE_ROLLBACK_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

DELETE_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

DELETE_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_CREATE_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_CREATE_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_CREATE_ROLLBACK_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_CREATE_ROLLBACK_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_UPDATE_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_UPDATE_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_UPDATE_ROLLBACK_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

IMPORT_UPDATE_ROLLBACK_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

47560378-1287-404d-bf2e-26b4b641****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

ROLLBACK_COMPLETE

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

ROLLBACK_FAILED

The stack status.

Outputs

Struct

None

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b33a8fa5-0ba8-43cf-8036-0bd3339e****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

ROLLBACK_COMPLETE

The stack status.

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 stack name.

StackId

String

b0bb2844-da77-4ceb-afe9-7dd6a97d****

The stack ID.

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 parameters contained in data.

Parameter

Type

Example

Description

Status

String

UPDATE_FAILED

The stack status.

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 stack name.

StackId

String

b0bb2844-da77-4ceb-afe9-7dd6a97d****

The stack ID.

The status of a stack is changed

The following example shows the event that EventBridge receives when the status of a stack is changed:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ros",
    "specversion": "1.0",
    "subject": "acs.ros:cn-hangzhou:123456789098****:stack/cfafc3f6-032b-420a-aa74-91e2d311****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ros:Stack:StatusChange",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "StackId": "cfafc3f6-032b-420a-aa74-91e2d311****",
        "StackName": "test-stack-name",
        "Tags": {"key1": "value1"},
        "Outputs": [],
        "Status": "CREATE_IN_PROGRESS"
    }
}

The following table describes the parameters contained in data.

Parameter

Type

Example

Description

Status

String

UPDATE_FAILED

The stack status.

Tags

Object

{"key1": "value1"}

The stack tags.

Outputs

Array

The output parameter of the stack.

StackName

String

test-stack

The stack name.

StackId

String

b0bb2844-da77-4ceb-afe9-7dd6a97d****

The stack ID.