How to delete Elasticache Default Cache Parameter Groups?

0

Using AWS Resource Explorer, I found regions like Soeul (AP-northeast-2) that have dozens of Elasticache Cache Parameter Groups. I have not used any elastic cache resources in this region before. There are no existing elasticache clusters or resources besides Cache Paramater Groups.

I would like to clean up all AWS resources in regions that are not in use.

Here is what I tried.

  • I tried deleting from console -- but delete is disabled
  • I tried deleting from AWS CLI (see below), but I receive InvalidParameterValue / 400 error.

aws --profile=my-admin-role --region=ap-northeast-2 elasticache delete-cache-parameter-group \
--cache-parameter-group-name="default.memcached1.4"

An error occurred (InvalidParameterValue) when calling the DeleteCacheParameterGroup operation: The parameter CacheParameterGroupName is not a valid identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
 ✘  tonymet@tony-beelink-2023b  ~/.aws  aws help
asked 8 months ago534 views
1 Answer
2

Hello.

The default ElastiCache parameter group created by AWS cannot be deleted.
Therefore, it is normal that it cannot be deleted using either the management console or the AWS CLI.
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Management.html

You cannot modify or delete the default parameter groups. If you need custom parameter values, you must create a custom parameter group.

profile picture
EXPERT
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago
profile pictureAWS
EXPERT
reviewed 8 months ago
  • why do i have these in regions that I have not yet used?

  • ElastiCache's default parameter group is automatically created by AWS, so it will be created automatically even in regions that are not in use. I confirmed that it was created in a region that I don't even use in my AWS account.

  • out of the dozens of AWS regions, why do only 4 have these default parameter groups? there are no elasticache resources in those regions

  • I tried looking for the documentation, but it didn't mention the reason for automatically creating it. These operations are managed by AWS and cannot be controlled by the user.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions