How to export / import API Gateway Mappings

0

We are working on a process to create a backup of all API Gateway Mappings in our environments to have on file, in case someone deletes the mappings. I see a way to export the current mappings, using the get-api-mappings, but how could I import the mappings back in case the mappings get deleted and need to be restored? Any assistance would be appreciated.

Thank you,

1回答
3
承認された回答

Hello,

According to your question, you have a question to restore the exported API Gateway mappings.


Through the steps, you can restore the API Gateway mappings:

  1. Export the mappings and save as a JSON file
aws apigateway get-mappings --domain-name <Domain_Name>
  1. Create new mappings with the exported mapping file
aws apigateway create-mapping --domain-name <Domain_Name> --cli-input-json <Mapping_File>

[+] create-api-mapping (AWS CLI Command Reference)


If I have missed anything or answered wrong, please feel free to ask me again. Also you have any questions, comment please!

profile picture
回答済み 6ヶ月前
profile pictureAWS
エキスパート
レビュー済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ