I have two EC2 instances(centos and ubuntu ) running on my root account
I created two iam users
Centos and ubuntu
I have attached a policy for both
But centos user can see there are two running EC2 instances but I want him to see only one
I would try to put each instance on a different subnet on the same VPC and have the Network ACL not have access to the CIDR block that each one uses.
if you have provided the read access then the user will able to see the instances. You can’t restrict view access but you can restrict actions.