Skip to content

Commit

Permalink
feat(elasticsearch): Support version 7.10 (#14320)
Browse files Browse the repository at this point in the history
Resolves #14502 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
TAKEDA-Takashi authored May 3, 2021
1 parent 9570747 commit f3a830c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To perform version upgrades without replacing the entire domain, specify the `en
import * as es from '@aws-cdk/aws-elasticsearch';

const devDomain = new es.Domain(this, 'Domain', {
version: es.ElasticsearchVersion.V7_9,
version: es.ElasticsearchVersion.V7_10,
enableVersionUpgrade: true // defaults to false
});
```
Expand Down Expand Up @@ -265,7 +265,7 @@ UltraWarm nodes can be enabled to provide a cost-effective way to store large am

```ts
const domain = new es.Domain(this, 'Domain', {
version: es.ElasticsearchVersion.V7_9,
version: es.ElasticsearchVersion.V7_10,
capacity: {
masterNodes: 2,
warmNodes: 2,
Expand Down
3 changes: 3 additions & 0 deletions packages/@aws-cdk/aws-elasticsearch/lib/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export class ElasticsearchVersion {
/** AWS Elasticsearch 7.9 */
public static readonly V7_9 = ElasticsearchVersion.of('7.9');

/** AWS Elasticsearch 7.10 */
public static readonly V7_10 = ElasticsearchVersion.of('7.10');

/**
* Custom Elasticsearch version
* @param version custom version number
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-elasticsearch/test/domain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('subnets and security groups can be provided when vpc is used', () => {
vpc,
});
const domain = new Domain(stack, 'Domain', {
version: ElasticsearchVersion.V7_9,
version: ElasticsearchVersion.V7_10,
vpc,
vpcSubnets: [{ subnets: [vpc.privateSubnets[0]] }],
securityGroups: [securityGroup],
Expand Down Expand Up @@ -77,7 +77,7 @@ test('default subnets and security group when vpc is used', () => {

const vpc = new Vpc(stack, 'Vpc');
const domain = new Domain(stack, 'Domain', {
version: ElasticsearchVersion.V7_9,
version: ElasticsearchVersion.V7_10,
vpc,
});

Expand Down

0 comments on commit f3a830c

Please sign in to comment.