What I am trying to do is create a Group for an external team that requires access to their CloudFormation of which is in our account. I would like to set restrictions on their group so that they may only view and edit their own website without viewing the rest of the sites on my teams account.
I have a test policy that should have allowed the user to be able to view only a specific EC2 instance (the example is below) but when I enter log in as the restricted group I have a message the reads "An error occurred fetching instance data: You are not authorized to perform this operation."
{
"Statement":[{
"Effect":"Allow",
"Action":"ec2:*",
"Resource":arn:aws:ec2:us-east-1:NUMBERS:instance/instance-ID",
"Condition":{
"ArnEquals":{
"ec2:Owner":"arn:aws:ec2:us-east-1:NUMBERS:instance/instance-ID"
}
}
}
]
}
Is there a way to set up group restrictions to certain CloudFormations including their EC2 instances, RDS and S3 Buckets?
Thanks,