Skip to content

Unable to Modify Database Parameter in AWS Lightsail

0

Hello, I am encountering an issue while attempting to modify a parameter for my AWS Lightsail relational database instance. Despite the parameter being marked as modifiable, I receive an error indicating that it cannot be modified because it is part of a default parameter group.

Parameter to Modify: idle_in_transaction_session_timeout

Error Message: An error occurred (InvalidInputException) when calling the UpdateRelationalDatabaseParameters operation: Cannot modify a default parameter group.

when I run aws lightsail get-relational-database-parameters --relational-database-name myDB I get back a list of parameters including:

...
        {
            "allowedValues": "0-2147483647",
            "applyMethod": "pending-reboot",
            "applyType": "dynamic",
            "dataType": "integer",
            "description": "(ms) Sets the maximum allowed duration of any idling transaction.",
            "isModifiable": true,
            "parameterName": "idle_in_transaction_session_timeout",
            "parameterValue": "86400000"
        },
...

When I attempt to update the value: aws lightsail update-relational-database-parameters --relational-database-name myDB --parameters "parameterName=idle_in_transaction_session_timeout,parameterValue=300,applyMethod=pending-reboot"

I get:

An error occurred (InvalidInputException) when calling the UpdateRelationalDatabaseParameters operation: Cannot modify a default parameter group.

Any help would greatly be appreciated.

Thanks

1 Answer
3
Accepted Answer

Hello.

Based on this documentation, it seems that Lightsail managed databases are configured with a custom parameter group when they are created.
https://repost.aws/knowledge-center/lightsail-update-database-parameter

When you create a Lightsail database, that database uses a custom parameter group named after the instance endpoint. Amazon Relational Database Service (Amazon RDS) DB instances use a default DB parameter group. To modify the database parameters for a Lightsail database instance, use the AWS Command Line Interface (AWS CLI).

There is a possibility that this is a bug, so we recommend that you open a case with AWS Support under "Account and billing".
Inquiries under "Account and billing" can be made free of charge.
https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
AWS
EXPERT
reviewed 2 years ago
  • By the way, I tried executing the command using my AWS account, and it was executed successfully, so the command itself is correct.

    aws lightsail update-relational-database-parameters --relational-database-name Database-1 --parameters "parameterName=idle_in_transaction_session_timeout,parameterValue=300,applyMethod=pending-reboot"
    {
        "operations": [
            {
                "id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
                "resourceName": "Database-1",
                "resourceType": "RelationalDatabase",
                "createdAt": "2024-08-06T14:13:57.557000+00:00",
                "location": {
                    "availabilityZone": "ap-northeast-1a",
                    "regionName": "ap-northeast-1"
                },
                "isTerminal": true,
                "operationDetails": "",
                "operationType": "UpdateRelationalDatabaseParameters",
                "status": "Succeeded",
                "statusChangedAt": "2024-08-06T14:13:57.557000+00:00"
            }
        ]
    }
    
  • Thank you! I'll open a case as you suggested :)

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.