aws shell function