docs/aws: Update documentation for AWS Spot Instances

The docs didn't specify that `ec2:DescribeSpotInstanceRequests` was
required. This causes an error as follows:

```
Error waiting for spot request (sir-yg6866gj) to become ready:
UnauthorizedOperation: You are not authorized to perform this operation.
```

This is because the permission to describe instance state is not available
This commit is contained in:
stack72 2018-06-08 03:04:22 +03:00
parent 5bddf6a267
commit 1bc471073f
No known key found for this signature in database
GPG Key ID: CB4C8109B73A7D6D
1 changed files with 8 additions and 3 deletions

View File

@ -170,8 +170,13 @@ for Packer to work:
}
```
Note that if you'd like to create a spot instance, you must also add
`ec2:RequestSpotInstances` and `ec2:CancelSpotInstanceRequests`
Note that if you'd like to create a spot instance, you must also add:
``` json
ec2:RequestSpotInstances,
ec2:CancelSpotInstanceRequests,
ec2:DescribeSpotInstanceRequests
```
## Troubleshooting