Comments (9)
Are you using the latest CDK? That's strange that it would be removed, that sounds like a breaking change.
from aws-rails-provisioner.
We're happy to take a PR to replace it with ParameterGroup.
from aws-rails-provisioner.
Related to aws/aws-cdk#8959
https://github.com/aws/aws-cdk/releases/tag/v1.52.0
from aws-rails-provisioner.
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.
from aws-rails-provisioner.
@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.
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.
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.
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)
- rails console HOT 5
- Improvement ideas
- Failed at the [email protected] build script HOT 3
- Getting `ENAMETOOLONG: name too long` when deploying HOT 3
- Numerous file errors upon build HOT 1
- ENAMETOOLONG Error on deploy HOT 2
- NPM build failed HOT 8
- Region not provided HOT 2
- Typescript error HOT 9
- Error when deploying Rails 6 app
- Cannot ask a question in stack overflow using tag aws-rails-provisioner (1500 reputation needed) HOT 2
- npm ERR! [email protected] build: `tsc` HOT 3
- Support Test Case generation for CDK stacks
- cdk bootstrap HOT 2
- aurora-postgresql DBParameterGroupFamily error HOT 3
- aws-rails-provisioner ignoring --profile option HOT 3
- CdkSampleInitStack was rollbacked.
- Defining other AWS Services
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-rails-provisioner.