Hi
While using the AWS Console to create an EC2 Spot instance request, I fill in all the details and set an IAM instance profile but when the spot request is created in the instance details section the IAM role is empty and the EC2 instance launched also has an empty IAM role.
This issue did not happen the last time we launched a new Spot fleet request 24 days ago, so it seems like a new bug, can anyone confirm if the issue is present on their console also?
I have also tried doing it via CLI but again the IamInstanceProfile parameter in the json:
"IamInstanceProfile": {
"Arn": "arn:aws:iam::xxx"
}
is ignored when the spot fleet is created. There is no error in the history log for the spot fleet request regarding failure to apply IAM role, so im not sure what seems to be the problem?
Here is trusted entities for that IAM role
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": [
"ec2.amazonaws.com",
"codedeploy.eu-west-1.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
thanks
Wasim