Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Serverless Architectures with AWS

You're reading from   Serverless Architectures with AWS Discover how you can migrate from traditional deployments to serverless architectures with AWS

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789805024
Length 226 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Mohit Gupta Mohit Gupta
Author Profile Icon Mohit Gupta
Mohit Gupta
Arrow right icon
View More author details
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
    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
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 $19.99/month. Cancel anytime
Banner background image