Giter VIP home page Giter VIP logo

Comments (9)

mullermp avatar mullermp commented on June 22, 2024

Are you using the latest CDK? That's strange that it would be removed, that sounds like a breaking change.

from aws-rails-provisioner.

mullermp avatar mullermp commented on June 22, 2024

We're happy to take a PR to replace it with ParameterGroup.

from aws-rails-provisioner.

mullermp avatar mullermp commented on June 22, 2024

Related to aws/aws-cdk#8959
https://github.com/aws/aws-cdk/releases/tag/v1.52.0

from aws-rails-provisioner.

NGL321 avatar NGL321 commented on June 22, 2024

Hey @nweinmeister,

You are correct, ClusterParameterGroup was removed in the last release due to being a functional duplicate of ParameterGroup.

They should be hot-swappable but lmk if they aren't!

😸 😷

from aws-rails-provisioner.

mullermp avatar mullermp commented on June 22, 2024

6567d12

from aws-rails-provisioner.

nweinmeister avatar nweinmeister commented on June 22, 2024

@mullermp Sorry missed your comments earlier. But thanks for fixing that! Definitely liking this gem so far for our infrastructure setup 👍

from aws-rails-provisioner.

ashishkarpe avatar ashishkarpe commented on June 22, 2024

Hi,
my old code is breaking now please can someone help me with how to update or replace this rds.ClusterParameterGroup with rds.ParameterGroup :

const dbParameterGroup = new rds.ClusterParameterGroup(this, "dbParameterGroup", {
     description: "Postgres SSL Enabled Parameter Group",
     family: postgresDatabaseParameterGroupFamily,
     parameters: {
       "max_connections": "100",
       "rds.force_ssl": "1",
       "ssl": "1",
     },
   });

New code:


  const ParameterGroupProps= new rds.ParameterGroupProps("Postgres SSL Enabled Parameter Group", postgresDatabaseParameterGroupFamily, {
      parameters: { 
      "max_connections": "100",
      "rds.force_ssl": "1",
      "ssl": "1",
    }, 
  });
    const dbParameterGroup = new rds.ParameterGroup(this, "dbParameterGroup", ParameterGroupProps )
   

cdk ls


/Users/ashishkarpe/code/operations/citus-db-migration/deploy/cdk/node_modules/ts-node/src/index.ts:434
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
lib/database-stack.ts:74:40 - error TS2339: Property 'ParameterGroupProps' does not exist on type 'typeof import("/Users/ashishkarpe/code/operations/citus-db-migration/deploy/cdk/node_modules/@aws-cdk/aws-rds/lib/index")'.

74     const ParameterGroupProps= new rds.ParameterGroupProps("Postgres SSL Enabled Parameter Group", postgresDatabaseParameterGroupFamily, {
                                          ~~~~~~~~~~~~~~~~~~~

from aws-rails-provisioner.

ashishkarpe avatar ashishkarpe commented on June 22, 2024

Also tried:


const dbParameterGroup = new rds.ParameterGroup(this, "dbParameterGroup", {
description: "Postgres SSL Enabled Parameter Group",
family: postgresDatabaseParameterGroupFamily,
parameters: {
"max_connections": "100",
"rds.force_ssl": "1",
"ssl": "1",
},
});

getting error: cdk ls


/Users/ashishkarpe/code/operations/citus-db-migration/deploy/cdk/node_modules/ts-node/src/index.ts:434
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
lib/database-stack.ts:96:7 - error TS2345: Argument of type '{ description: string; family: string; parameters: { max_connections: string; "rds.force_ssl": string; ssl: string; }; }' is not assignable to parameter of type 'ParameterGroupProps'.
  Object literal may only specify known properties, and 'family' does not exist in type 'ParameterGroupProps'.
96       family: postgresDatabaseParameterGroupFamily,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/database-stack.ts:108:11 - error TS2739: Type 'Duration' is missing the following properties from type 'Duration': isUnresolved, unitLabel, formatTokenToNumber
108           retention: cdk.Duration.days(30),
              ~~~~~~~~~
lib/database-stack.ts:111:44 - error TS2339: Property 'AURORA_POSTGRESQL' does not exist on type 'typeof DatabaseInstanceEngine'.
111         engine: rds.DatabaseInstanceEngine.AURORA_POSTGRESQL,
                

from aws-rails-provisioner.

ashishkarpe avatar ashishkarpe commented on June 22, 2024

used this which worked for me sharing here so may help if someone needed


const dbParameterGroup = new CfnDBClusterParameterGroup(
  this,
  "ParameterGroup",
  {
    family: "aurora5.6",
    description: "My Aurora Database Parameters.",
    parameters: {
      innodb_large_prefix: "1",
      innodb_file_per_table: "1",
      innodb_file_format: "Barracuda",
      character_set_client: "utf8mb4",
      character_set_connection: "utf8mb4",
      character_set_database: "utf8mb4",
      character_set_results: "utf8mb4",
      character_set_server: "utf8mb4",
      collation_server: "utf8mb4_unicode_ci",
      collation_connection: "utf8mb4_unicode_ci"
    }
  }
);

from aws-rails-provisioner.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.