# Aws cli workflow example

**URL:** <https://community.n8n.io/t/aws-cli-workflow-example/30285>\
**Category:** Questions\
**Tags:** ssh, external-api, execute-command\
**Created:** [September 7, 2023, 7:50pm UTC](https://community.n8n.io/t/aws-cli-workflow-example/30285 "2023-09-07T19:50:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flo](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/flo/32/29461_2.png) [@flo](https://community.n8n.io/u/flo)\
**Post date:** [September 7, 2023, 7:50pm UTC](https://community.n8n.io/t/aws-cli-workflow-example/30285/1 "2023-09-07T19:50:11Z")

</div>

Hello Guys,

I would like to perform some query on aws, but I’m not sure what is the best was to do it.  
Usually I use my terminal or python snippet with the boto3 library.

An example would be to get information like :

```auto
aws support describe-trusted-advisor-check-result --check-id XXXX --profile YYYY --language en --query "result.flaggedResources[?status!='not_available']"

```

Happy to get some feedback or ideas 🙂

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [September 11, 2023, 9:53am UTC](https://community.n8n.io/t/aws-cli-workflow-example/30285/4 "2023-09-11T09:53:42Z")

</div>

Hi @flo, welcome to the community!

You can continue to use your existing CLI commands even with n8n in case where no pre-built node is available and you’d rather not set up your API requests using n8n’s HTTP Request node.

You have essentially two options in such a scenario:

- The [Execute Command](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executecommand/) node. This lets you run any CLI command on the host.
- Alternatively, you can also consider using the [SSH](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.ssh/) node to run your command on a remote machine (in case the CLI isn’t available on the n8n host for example).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 10, 2023, 9:53am UTC](https://community.n8n.io/t/aws-cli-workflow-example/30285/5 "2023-12-10T09:53:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
