- Using AWS Dashboard
- Using Programmatic Access
I’m focussing only the Programmatic access way since most devs relay on that.Programmable access to AWS services allows you to automate and manage your serverless applications using scripts or code. Here are three common programmable access methods:
a. AWS CLI (Command Line Interface):
- The AWS CLI is a command-line tool that provides commands for interacting with AWS services from the terminal or command prompt.You can update your serverless application by executing AWS CLI commands to make changes to your AWS resources. For example, you can use
aws lambda update-function-code
to update Lambda function code oraws apigateway update-rest-api
to update API Gateway configurations.
- AWS SDKs are libraries available in various programming languages (e.g., Python, Java, JavaScript) that allow you to programmatically interact with AWS services in your applications.You can use AWS SDKs to update your serverless application by integrating AWS SDK code into your applications and invoking SDK methods to modify AWS resources. For example, you can use the AWS SDK for Python (Boto3) to update Lambda function configurations or API Gateway settings.
- AWS CDK is an open-source software development framework for defining cloud infrastructure as code using familiar programming languages like TypeScript, Python, Java, and C#.
- You can use AWS CDK to define and provision your serverless application infrastructure using code. By updating your CDK code and deploying it, you can update your serverless application’s resources in a repeatable and version-controlled manner.
Each of these methods offers different levels of automation, flexibility, and control for updating your AWS Serverless applications. Depending on your preferences, requirements, and existing workflows, you can choose the method that best suits your needs.