Closed zxkane closed 1 year ago
Hi @zxkane
I can deploy it with no error with cdk v2.51.1 in us-west-2
.
import * as neptune from '@aws-cdk/aws-neptune-alpha';
import {
App, Stack, StackProps,
aws_ec2 as ec2,
} from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class MyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps = {}) {
super(scope, id, props);
const vpc = ec2.Vpc.fromLookup(this, 'VPC', { isDefault: true });
new neptune.DatabaseCluster(this, 'Database', {
vpc,
instanceType: neptune.InstanceType.R5_LARGE,
});
}
}
const devEnv = {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
};
const app = new App();
new MyStack(app, 'test-dev', { env: devEnv });
app.synth();
Which region were you deploying? Are you still having this issue?
I faced the same issue today. I suspect the problem is that when the engine version
is not mentioned in the CDK code, it defaults to a version >= 1.2.0.0
.
I fixed it by explicitly specifying the engine version
of the Neptune database cluster to 1.1.1.0, which was what all our clusters were previously using.
I faced the same issue today. I suspect the problem is that when the
engine version
is not mentioned in the CDK code, it defaults to aversion >= 1.2.0.0
. I fixed it by explicitly specifying theengine version
of the Neptune database cluster to 1.1.1.0, which was what all our clusters were previously using.
Yes, the engine version must be explicitly specified <1.2.0
, or specify the family of parameter group to neptune1.2
.
Hi @zxkane
I still can deploy this with cdk 2.69.0 without any error.
Can you provide the code snippet that fails with error?
new neptune.DatabaseCluster(this, 'Database', {
vpc,
instanceType: neptune.InstanceType.R5_LARGE,
});
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
Describe the bug
Following the doc creating a Neptune cluster, it fails with below message,
Expected Behavior
The neptune cluster could be created successfully via default properties of CDK L2 construct.
Current Behavior
The cluster could not be created due to the family of parameter group is required
neptune1.2
.Reproduction Steps
Create the Neptune cluster via below code snippet,
Possible Solution
the user explicitly override the default family of parameter group with default Neptune engine version,
or update the default value of family of
ClusterParameterGroup
andParameterGroup
toNEPTUNE_1_2
Additional Information/Context
It's caused by Neptune using 1.2.0.0+ as default engine version that requires the family as
neptune1.2
CDK CLI Version
2.51.1
Framework Version
No response
Node.js Version
14.x
OS
amazon linux 2
Language
Typescript
Language Version
No response
Other information
No response