The permission can be added for each instance using the Policy Generator:
- Effect: Allow
- AWS Service: Amazon EC2
- Actions: StartInstances
- ARN: e.g. arn:aws:ec2:ap-southeast-1:<accountId>:instance/<instanceId>
To include multiple instances, either add multiple statements or edit the policy statement manually later to add more instances.
You can start the instance via AWS API using the "ec2-start-instances" command.
References:
No comments:
Post a Comment