In terms of security, which option is better for handling permissions on a Jenkins EC2 instance, an instance profile or a IAM user with a role?
An instance profile allows anyone who has access to the box to run the specified aws cli commands. With an IAM jenkins user, one could limit who is able to run the aws cli commands by locking down credential files on the instance. Is there any benefit to using an instance profile?