aws ec2 modify-instance-placement
Modifies the placement attributes for a specified instance. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--affinityThe affinity setting for the instance.--group-idThe Group Id of a placement group.--group-nameThe name of the placement group in which to place the instance.--host-idThe ID of the Dedicated Host with which to associate the instance.--host-resource-group-arnThe ARN of the host resource group in which to place the instance.--instance-idThe ID of the instance that you are modifying.--partition-numberThe number of the partition in which to place the instance.--tenancyThe tenancy for the instance.