Skip to main content

Run AWS CLI Script Under Assumed Role

Assume role and run an AWS CLI script.

Parameters

ParameterDescription
AWS CommandThe AWS command to run.
Role ARNThe command will be executed using the specified role ARN.
RegionRegion for the aws command.
Working DirectoryWhen a working directory is selected, the filesystem state is preserved across steps that use this directory. Files and changes in the chosen directory persist across steps, ensuring continuity. For more information, refer to the Create Working Directory action documentation for guidance on setting up and selecting working directories.