Skip to content

Can't remove EC2 instance from Placement Group, Maybe bug?

0

I followed instructions from here
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html#change-instance-placement-group
And used command

aws ec2 modify-instance-placement --instance-id i-0123a456700123456 --group-name ""

But I'm getting error

error: argument --group-name: expected one argument

Also would be good idea to set "if else" or whatever to prevent users to add "t" instances to placement group.
I can't start instance, and command not works, the only way is to export it to AMI and run like new instance? :)

asked 7 years ago416 views

1 Answer
0

It is possible to do with PowerShell cmdlet

Edit-EC2InstancePlacement -InstanceId i-0123a456700123456 -GroupName "" -Region eu-central-1

and empty string here works

Edited by: CoyoteKG on Feb 23, 2019 2:16 PM

answered 7 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.