According to this, the role aws-elasticbeanstalk-ec2-role
should be used for Elastic Beanstalk instances.
I would like to find this role so that I can refer to it in other places in my scripts.
data aws_iam_role "elasticbeanstalk_ec2_role" {
name = "aws-elasticbeanstalk-ec2-role"
}
This isn't right though:
NoSuchEntity: The role with name aws-elasticbeanstalk-ec2-role cannot be found.
How can I find this role?