Sign out and log back in with an IAM user with admin privileges.
Access the IAM service management console

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:*",
"Resource": "*",
"Condition": {
"ForAllValues:StringLike": {
"ec2:InstanceType": [
"t3.*"
]
}
}
}
]
}
Click Next.


In the next step, we will attach the policy to the CostTest group and then test the effectiveness of this policy.