Skip to content

Instantly share code, notes, and snippets.

@ranjian0
Created December 1, 2021 13:32
Show Gist options
  • Save ranjian0/4b75ff058f4f2b19fb1ac7eb043e23e6 to your computer and use it in GitHub Desktop.
Save ranjian0/4b75ff058f4f2b19fb1ac7eb043e23e6 to your computer and use it in GitHub Desktop.
aws cli commands to rename apigateway resource
# 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