Few years back this feature was not available in AWS .Once instance launched with particular role you can not replace . Need to launch the instance with required role .This is really challenge task in real time scenario Now Amazon enabled this beautiful features . So you can attache or replace the role to instance anytime even in EC2 instance…