Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7197135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:54:49+00:00 2026-05-28T20:54:49+00:00

Trying to modify a database parameter group on AWS RDS with boto, I hit

  • 0

Trying to modify a database parameter group on AWS RDS with boto, I hit upon the error below:

from boto import rds
conn = rds.connect_to_region('eu-west-1', aws_access_key_id=AWS_ACCESS_KEY_ID,     aws_secret_access_key=AWS_SECRET_ACCESS_KEY)
pg = conn.get_all_dbparameters('mygroup')
pg.add_param('slow_query_log', True, 'immediate')


TypeError
"unknown type (<type 'str'>)"
 File: /usr/local/lib/python2.6/dist-packages/boto/rds/parametergroup.py, Line: 175

Any help would be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:54:50+00:00Added an answer on May 28, 2026 at 8:54 pm

    Try something like this:

    pg = conn.get_all_dbparameters('mygroup')
    pg2 = conn.get_all_dbparameters('mygroup', marker = pg.Marker)
    pg2['slow_query_log'].value = True
    pg2['slow_query_log'].apply(True)
    

    The conn.get_all_dbparameters() method returns max. 100 rows. However there are about 180 DB Parameters that can be modified. Therefore you have query in two steps. The first method call returns a Marker that you can use for your second query. In the second query you will have your slow_query_log available

    http://boto.cloudhackers.com/en/latest/ref/rds.html#boto.rds.RDSConnection.get_all_dbparameter_groups

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to modify model coming from View and then update my database
I'm trying to modify some code that returns results from the database. Currently the
I am trying to modify an existing MySQL database for use in a new
I'm trying to modify my GreaseMonkey script from firing on window.onload to window.DOMContentLoaded, but
I am trying to modify the amcap, an application from Windows SDK's example to
I'm trying to modify and existing Access application to use MySQL as a database
I'm trying to write a regular expression to modify URLs stored in a database
I am trying to modify a database Migration in a Ruby on Rails application.
I am trying to grow a database using the following the code below. However
I'm trying to modify my test so that any database work is rolled back

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.