mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-12 07:25:44 +00:00
Edit AWS policy template (#672)
This commit is contained in:
parent
b171d597fc
commit
c899c114b6
@ -191,12 +191,12 @@ The template policy below demonstrates how to restrict the autoscaler to launch
|
|||||||
|
|
||||||
The policy includes the following permissions:
|
The policy includes the following permissions:
|
||||||
* Enables performing certain EC2 actions on all resources in specified regions
|
* Enables performing certain EC2 actions on all resources in specified regions
|
||||||
|
* Enables performing certain EC2 actions on all resources of specified instance types
|
||||||
* Enables performing certain EC2 actions on specified resources (in selected subnet and security group, and any network-interface, volume, key-pair, instance)
|
* Enables performing certain EC2 actions on specified resources (in selected subnet and security group, and any network-interface, volume, key-pair, instance)
|
||||||
* Enables performing an EC2 action to use on a specified AMI on condition that the `ec2:Owner` is a specified owner
|
* Enables performing an EC2 action to use on a specified AMI on condition that the `ec2:Owner` is a specified owner
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
||||||
"Version": "2012-10-17",
|
"Version": "2012-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
@ -219,11 +219,25 @@ The policy includes the following permissions:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Sid": "RunEC2InstanceType",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": "ec2:RunInstances",
|
||||||
|
"Resource": "*",
|
||||||
|
"Condition": {
|
||||||
|
"StringLikeIfExists": {
|
||||||
|
"ec2:InstanceType": [
|
||||||
|
"<instance type 1>",
|
||||||
|
"<instance type 2>",
|
||||||
|
"<instance type 3>"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Sid": "RunEC2",
|
"Sid": "RunEC2",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": [
|
"Action": [
|
||||||
"ec2:RunInstances",
|
|
||||||
"ec2:CreateTags",
|
"ec2:CreateTags",
|
||||||
"ec2:DeleteTags",
|
"ec2:DeleteTags",
|
||||||
"ec2:StartInstances",
|
"ec2:StartInstances",
|
||||||
|
Loading…
Reference in New Issue
Block a user