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
demandé il y a 5 mois247 vues
1 réponse
0
Réponse acceptée

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

import boto3

def lambda_handler(event, context):
    print(boto3.__version__)
profile picture
EXPERT
répondu il y a 5 mois
  • こちらの変更履歴を見る限りでは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でした。 追加されているバージョンをレイヤーで入れる形で対応してみようと思います。 参考リンクも添付ありがとうございます。大変勉強になりました。

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions