Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Serverless Architectures with AWS

You're reading from  Serverless Architectures with AWS

Product type Book
Published in Dec 2018
Publisher Packt
ISBN-13 9781789805024
Pages 226 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Mohit Gupta Mohit Gupta
Profile icon Mohit Gupta
Toc

Chapter 3: Building and Deploying a Media Application


Solution for Activity 4: Creating an API to Delete the S3 Bucket

  1. Go to the AWS API Gateway console and in the API created in this chapter, create a Delete API.

  2. Configure the incoming headers and path parameters properly in the Method Request and Integration Request sections.

    Your API configuration should look similar to the following screenshot:

    Figure 3.37: The DELETE method execution window

  3. Remember to change the authorization of the Delete method from NONE to AWS_IAM.

  4. Click on the Deploy API.

  5. Test the Delete method using the Test Tool (Ready API). Set content-type as application/xml:

    Figure 3.38: Output showing the bucket getting deleted

You should see the bucket getting deleted in the AWS S3 console.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime