ALIYUN::ECS::RamRoleAttachment is used to attach an instance Resource Access Management (RAM) role to Elastic Compute Service (ECS) instances.
Syntax
{
"Type": "ALIYUN::ECS::RamRoleAttachment",
"Properties": {
"Policy": String,
"RamRoleName": String,
"InstanceIds": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Policy | String | No | No | The policy. | The policy must be 1 to 1,024 characters in length. When you attach an instance RAM role to one or more instances, you can specify an additional policy to further limit the permissions of the role. For more information, see Policy overview. |
RamRoleName | String | Yes | No | The name of the instance RAM role. | You can call the ListRoles operation provided by RAM to query the instance RAM roles that you created. |
InstanceIds | List | Yes | No | The IDs of the ECS instances. | The value can be a JSON array that consists of up to 100 instance IDs. |
Return values
Fn::GetAtt
RamRoleName: the name of the instance RAM role.
InstanceIds: the IDs of the ECS instances.