If you work with serverless projects, as you might be aware that a serverless project can end up with hundreds of Lambda functions which definitely increases the complexity of your application, good new is that recently announced its support for more resource types, especially for groups based on an AWS CloudFormation stack. AWS Resource Groups By using Resource Groups, you might find it very useful to act on all corresponding resources as group rather than move around from one service to another. In this article, I will be building a serverless restful api project using and create a resource group that contains a collection of related AWS services for our api project. Serverless Framework Prerequisites The following must be done before following this guide: Setup an AWS account Install Serverless framework Building a RESTful API with the Serverless Framework First of all we have to install or update the Serverless framework to latest version: npm -g serverless install Next, let’s create a new serverless project: sls create - - template aws - nodejs - - path myapp The directory that is created includes two files — is the Lambda function, the serverless.yml file contains the configurations of the backend, add following config to serverless.yml: handler.js service: myapp provider: name: aws runtime: nodejs8.10 region: ap-southeast-2 tags: serverless: myapp functions: hello: handler: handler.hello events: - http: path: hello method: get Let’s update our , create a lambda function to handle api gateway request: handler.js ; .exports.hello = (event, context) => { { : , : .stringify({ : , : event, }), }; 'use strict' module async return statusCode 200 body JSON message 'Go Serverless v1.0! Your function executed successfully!' input next, deploy the api: sls dev deploy --stage The output looks like this: Now, we have our api deployed, this is where the fun begins! Let’s create a resource group to manage our api resources. Creating a resource group Let’s open the AWS , on the navigation pane, under , choose Resource Groups console Resource Groups Create Resource Group. Select , then choose the CloudFormation stack, in this example, we have stack just deployed, CloudFormation stack based myapp-dev click button to see all the related services included the stack. View group resources In , type the group name and description. Group details Everything is configured, choose We can go to to view resource group we just created. Create group. Saved resource groups Navigating to the , we can see the our serverless project includes S3, ApiGateway RestApi, lambda, CloudWatch Logs and Iam role resources. group resource Viewing CloudTrail events for AWS Resource Group System Managers show detailed information about the resources in our groups, such as config and AWS CloudTrail logs. Let’s open , choose in the left navigation pane under , We can see all the event log data from CloudTrail. AWS Systems Manager console Resource Groups Operations Management That’s all about it! Thanks for reading, I hope you have found this article useful, please give me a if you’d like to see more in future! follow