You can use profiles to run AWS commands in taskflow command task scripts in a serverless runtime environment. This is useful when you migrate from a Secure Agent or Secure Agent group to a serverless runtime environment.
You can run the scripts that contain the AWS commands directly as shown in the following sample:
For example, consider that you want to migrate from OnPrem Secure Agent to a serverless runtime environment, and you have many scripts to run. You do not need to edit each script to add access permissions. You can create profiles in the AWS configuration file or use default profiles to provide access permissions.