Assigns an instance RAM role to one or more ECS instances.
Syntax
{
"Type": "ALIYUN::ECS::RamRoleAttachment",
"Properties": {
"Policy": String,
"RamRoleName": String,
"InstanceIds": List
}
}
Properties
|
Property name |
Type |
Required |
Updatable |
Description |
Constraints |
|
Policy |
String |
No |
No |
The access policy. |
Must be 1 to 1,024 characters in length. Specifies an additional access policy to further limit the permissions of the RAM role. For more information, see Access policy overview. |
|
RamRoleName |
String |
Yes |
No |
The name of the instance RAM role. |
Use the RAM API ListRoles to query the instance RAM roles that you created. |
|
InstanceIds |
List |
Yes |
No |
A list of instance IDs. |
A JSON array of instance IDs. You can specify up to 100 instances. |
Return values
Fn::GetAtt
-
RamRoleName: The name of the instance RAM role.
-
InstanceIds: A list of instance IDs.