How to delete AWSServiceRoleForAmazonEMRServerless?

95 Views Asked by At

I am new to AWS and my account got hacked and in order to secure the account I have been advised to delete IAM roles. There is one role called AWSServiceRoleForAmazonEMRServerless that I am unable to delete as the error message says Applications are in use.

Delete role

Also I am unable to edit the policy linked the role. My AWS CLI also doesn't open (tried different browsers, regions and OSs). Please point me in the right direction.

1

There are 1 best solutions below

2
On

AWSServiceRoleForAmazonEMRServerless is a service-linked role created by AWS.

You can delete it, but your error message indicates that something is using the role, so it cannot be deleted. It is used by Amazon EMR, so you should check if your account is running any Amazon EMR Serverless services.

Frankly, there is no harm in leaving it there.

See: Using service-linked roles - AWS Identity and Access Management