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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠