Skip to content

Commit

Permalink
feat(redshift-alpha): issue aws#31634: added integration tests for re…
Browse files Browse the repository at this point in the history
…dshift node type
  • Loading branch information
Imtiaz Asad Bin, INI-DNA-DL authored and Imtiaz Asad Bin, INI-DNA-DL committed Oct 4, 2024
1 parent 41b2a51 commit a114c31
Show file tree
Hide file tree
Showing 10 changed files with 1,871 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-redshift-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ as it's a fast operation and typically completes in minutes. Elastic resize is o
* dc2.8xlarge
* ds2.xlarge
* ds2.8xlarge
* ra3.large
* ra3.xlplus
* ra3.4xlarge
* ra3.16xlarge
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import { Stack, App, StackProps } from 'aws-cdk-lib';
import * as integ from '@aws-cdk/integ-tests-alpha';
import { Construct } from 'constructs';
import * as redshift from '../lib';

class RedshiftRA3LargeTestStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);

const vpc = new ec2.Vpc(this, 'VPC', {
restrictDefaultSecurityGroup: false
});

new redshift.Cluster(this, 'RA3LargeCluster', {
vpc: vpc,
vpcSubnets: {
subnetType: ec2.SubnetType.PUBLIC,
},
masterUser: {
masterUsername: 'admin',
},
nodeType: redshift.NodeType.RA3_LARGE,
numberOfNodes: 2,
});
}
}

const app = new App();

new integ.IntegTest(app, 'RA3LargeNodeIntegTest', {
testCases: [new RedshiftRA3LargeTestStack(app, 'redshift-ra3-large-integ')],
});

app.synth();

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a114c31

Please sign in to comment.