boto3でcreate_domain 使用時に、IPAddressTypeが指定できないのはなぜですか。

0

boto3を利用して、OpenSearchの新しいdomainを作成を試みています。

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/opensearch/client/create_domain.html 上記のページを参考にしています。

domainの設定の中に IPAddressType='ipv4'|'dualstack' を指定できる部分があるともうのですが、 IPAddressTypeの設定を書いたうえでcreate_domainを実施すると次のようなエラーが出ます。

[ERROR] ParamValidationError: Parameter validation failed: Unknown parameter in input: "IPAddressType", must be one of: DomainName, EngineVersion, ClusterConfig, EBSOptions, AccessPolicies, SnapshotOptions, VPCOptions, CognitoOptions, EncryptionAtRestOptions, NodeToNodeEncryptionOptions, AdvancedOptions, LogPublishingOptions, DomainEndpointOptions, AdvancedSecurityOptions, TagList, AutoTuneOptions, OffPeakWindowOptions, SoftwareUpdateOptions

IPAddressTypeは設定できないのでしょうか?

yuuka_u
posta 5 mesi fa248 visualizzazioni
1 Risposta
0
Risposta accettata

Boto3のバージョンはいくつを使用していますか?
おそらく古いバージョンを使用しているのではないかと予想しています。
バージョンは以下のコードで確認できます。

import boto3

def lambda_handler(event, context):
    print(boto3.__version__)
profile picture
ESPERTO
con risposta 5 mesi fa
  • こちらの変更履歴を見る限りでは1.28.72以降で追加されたパラメータのようです。 https://github.com/boto/boto3/blob/develop/CHANGELOG.rst

    * api-change:``opensearch``: [``botocore``] You can specify ipv4 or dualstack IPAddressType for cluster endpoints. If you specify IPAddressType as dualstack, the new endpoint will be visible under the 'EndpointV2' parameter and will support IPv4 and IPv6 requests. Whereas, the 'Endpoint' will continue to serve IPv4 requests.
    
  • Riku_Kobayashiさん。ご回答ありがとうございます。 バージョンを確認したところ、1.26.90でした。 追加されているバージョンをレイヤーで入れる形で対応してみようと思います。 参考リンクも添付ありがとうございます。大変勉強になりました。

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande