Using Console
Using CLI
<function-name>
with the name of the identified Lambda function, <alias-name>
with the name of the alias you want to create, and <version>
with the version of the Lambda function you want to associate with the alias.Step 5: Verify that the alias has been created successfully by running the following command:<function-name>
with the name of the Lambda function for which you created the alias.Step 6: Repeat steps 4 and 5 for all the Lambda functions in your AWS account.By following these steps, you can remediate the misconfiguration “Lambda Functions Should Have Aliases” for AWS using AWS CLI.Using Python