Skip to content

(elasticsearch): DomainProps.advancedOptions has no effect (doesn't actually set AdvancedOptions) #14067

@ran-arigur

Description

@ran-arigur

DomainProps has an 'advancedOptions' field [code] [doc]:

  /**
   * Additional options to specify for the Amazon ES domain.
   *
   * @default - no advanced options are specified
   */
  readonly advancedOptions?: { [key: string]: (string) };

However, this field doesn't seem to be used anywhere. [code search]

In particular, it's not used to set the 'AdvancedOptions' field in CloudFormation's AWS::Elasticsearch::Domain resource [doc], which was surely the intent.

Reproduction Steps

What did you expect to happen?

  • The generated CloudFormation template should include an 'AdvancedOptions' field with the specified mappings.
  • The resultant Elasticsearch domain should have the specified advanced options.

What actually happened?

  • The generated CloudFormation template does not have an 'AdvancedOptions' field, and more generally, the 'advancedOptions' field seems to have no effect on the generated CloudFormation template. (I confirmed this via diff -r.)
  • The resultant Elasticsearch domain does not have the specified advanced options, and more generally, the 'advancedOptions' field has no effect on the resultant Elasticsearch domain.

Environment

  • cdk 1.96.0
  • TypeScript ~4.0.5

Other

N/A


This is 🐛 Bug Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-elasticsearchRelated to Amazon Elasticsearch ServicebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions