Hi,
I'm looking for help with AWS API Gateway.
Objective:
- Create an authenticated REST API endpoint to allow PUT of JSON saved as files to S3. (Webhook)
- Create a REST API endpoint to allow PUT of images & PDF as files to S3 (<1MB) (Webhool)
https://repost.aws/knowledge-center/api-gateway-upload-image-s3
I'm looking to avoid using Lamdas as they don't seem to be necessary for this.
I'm running into issues following all of these tutorials when it comes to configuring the API.
I notice a difference in the tutorial when creating the resources

Create resources for your API
- In the Resources panel of your API page, select /.
- For Actions, choose Create Resource.
- For Resource Name, enter folder.
- For Resource Path, enter {folder}.
- Choose Create Resource.
- In the Resources panel, select the /{folder} resource that you created in step 5.
- Choose Actions, and then choose Create Resource.
- For Resource Name, enter object.
- For Resource Path, enter {object}.
- Choose Create Resource.
I created a folder resource with a object resource within it, but I can't put a a {folder} in the path as there is only a dropdown - can't enter custom text.
When continuing on and I get to this section, it doesn't want to accept the mapping parameters.
Configure parameter mappings for the PUT method
- In the Resources panel of your API page, choose PUT.
- Choose Integration Request.
- Expand URL Path Parameters.
- Choose Add path.
- For Name, enter bucket.
- For Mapped from, enter method.request.path.folder.
- Choose the check mark icon at the end of the row.
- Repeat steps 4–7. In step 5, set Name to key. In step 6, set Mapped from to method.request.path.object.
When I try and do the mapping's I get this error when trying to map bucket and key:
Invalid mapping expression specified: Validation Result: warnings : [], errors : [Invalid mapping expression parameter specified: method.request.path.object].
I've experienced this same issue when following 3 different tutorials?
It looks like something has changed since these tutorials were released and I can't seem to resolve the issue. Any help would be appreciated.
Also - the tutorial is mostly for handling binary file formats, can you also let me know what needs to differ to accept a JSON body and create JSON text files with .json extension in S3.