From 5516cf8f395e79b32ed30332b7b69918092ccaa0 Mon Sep 17 00:00:00 2001 From: thezackm Date: Tue, 30 Jan 2024 13:02:51 -0600 Subject: [PATCH 1/2] feat: add aws cli example --- examples/aws-cli-example.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/aws-cli-example.yml diff --git a/examples/aws-cli-example.yml b/examples/aws-cli-example.yml new file mode 100644 index 00000000..b758640f --- /dev/null +++ b/examples/aws-cli-example.yml @@ -0,0 +1,12 @@ +# This example tests access for nri-flex to use the AWS CLI by executing the get-caller-identity command from Security Token Service (STS) +# The root user that executes nri-flex will need access to the credentials for AWS that you want to use +# NRQL validation: FROM aws_cli_test SELECT * +integrations: + - name: nri-flex + interval: 300s + config: + name: aws_cli_test + apis: + - event_type: aws_cli_test + commands: + - run: "aws sts get-caller-identity" \ No newline at end of file From 6778647b5e7c6c5ed151c30e26a6fa8364522293 Mon Sep 17 00:00:00 2001 From: thezackm Date: Tue, 30 Jan 2024 13:02:51 -0600 Subject: [PATCH 2/2] feat: add aws cli example chore:update signature --- examples/aws-cli-example.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/aws-cli-example.yml diff --git a/examples/aws-cli-example.yml b/examples/aws-cli-example.yml new file mode 100644 index 00000000..b758640f --- /dev/null +++ b/examples/aws-cli-example.yml @@ -0,0 +1,12 @@ +# This example tests access for nri-flex to use the AWS CLI by executing the get-caller-identity command from Security Token Service (STS) +# The root user that executes nri-flex will need access to the credentials for AWS that you want to use +# NRQL validation: FROM aws_cli_test SELECT * +integrations: + - name: nri-flex + interval: 300s + config: + name: aws_cli_test + apis: + - event_type: aws_cli_test + commands: + - run: "aws sts get-caller-identity" \ No newline at end of file