Fixing issue with AWS plugin, attribute for security group should be discovery.ec2.group, upgrade plugin
No need to fuss with bootstrap, you can force packages to be installed first