ec2:ReplaceIamInstanceProfileAssociation

Replaces an IAM instance profile for the specified running instance.

Supported Resource-Level Permissions

  • arn:aws:ec2:$region:$account:instance/*
  • arn:aws:ec2:$region:$account:instance/$instance-id

Supported Service Specific Conditions

  • ec2:AvailabilityZone
  • ec2:EbsOptimized
  • ec2:InstanceProfile
  • ec2:InstanceType
  • ec2:PlacementGroup
  • ec2:Region
  • ec2:ResourceTag/$tag-key
  • ec2:RootDeviceType
  • ec2:Tenancy

Comments & Examples