Change Instance type of a cluster registered ec2 instance
<p>I have an Amazon EC2 instance which is registered to a cluster of Amazon ECS. </p>

<p>And I want to change this instance's type from <code>c4.large</code> to <code>c4.8xlarge</code>.</p>

<p>I'm able to change its type from <code>c4.large</code> to <code>c4.8xlarge</code> in AWS console. But after the change, I found </p>

<p><code>[ERROR] Could not register module="api client" err="ClientException: Container instance type changes are not supported. Container instance XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX was previously registered as c4.large.</code> </p>

<p>being printed in <code>/var/log/ecs/ecs-agent.log.20XX-XX-XX-XX</code> file.</p>

<p>Is it possible to change ec2 instance type and re-register it to a cluster?</p>

<p>I think maybe deregister it first, then register it again should work. But I'm afraid this may cause something irreversible in my AWS working environment. So I haven't tried this method yet.</p>