Created
December 1, 2021 13:32
-
-
Save ranjian0/4b75ff058f4f2b19fb1ac7eb043e23e6 to your computer and use it in GitHub Desktop.
aws cli commands to rename apigateway resource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the api id | |
aws apigateway get-rest-apis | |
# Find the resource id | |
aws apigateway get-resources --rest-api-id <api_id> | |
# Rename the resource | |
aws apigateway update-resource --rest-api-id <api_id> --resource-id <res_id> --patch-operations op=replace,path=/pathPart,value=<new_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment