Module: check_mk
Branch: master
Commit: ebd453b7b1c2d6fdd4dff47b9e56f592f9cf1df6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ebd453b7b1c2d6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Dec 20 09:36:14 2018 +0100
agent_aws: Added regions to help text
Change-Id: I6d7effa44f9235c71ea53932c474e082a971639e
---
agents/special/agent_aws | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 4afda0c..648958d 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -960,13 +960,35 @@ class AWSSections(object):
def parse_arguments(argv):
- parser = argparse.ArgumentParser(description=__doc__)
+ parser = argparse.ArgumentParser(
+ description=__doc__, formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument("--debug", action="store_true",
help="Raise Python exceptions.")
parser.add_argument(
"--aws-access-key-id", required=True, help="The access key for
your AWS account.")
parser.add_argument(
"--aws-secret-access-key", required=True, help="The secret key for
your AWS account.")
- parser.add_argument("--region", required=True, help="The region to
use.")
+ parser.add_argument(
+ "--region",
+ required=True,
+ help="""The region to use:
+ap-south-1 Asia Pacific (Mumbai)
+ap-northeast-3 Asia Pacific (Osaka-Local)
+ap-northeast-2 Asia Pacific (Seoul)
+ap-southeast-1 Asia Pacific (Singapore)
+ap-southeast-2 Asia Pacific (Sydney)
+ap-northeast-1 Asia Pacific (Tokyo)
+ca-central-1 Canada (Central)
+cn-north-1 China (Beijing)
+cn-northwest-1 China (Ningxia)
+eu-central-1 EU (Frankfurt)
+eu-west-1 EU (Ireland)
+eu-west-2 EU (London)
+eu-west-3 EU (Paris)
+sa-east-1 South America (Sao Paulo)
+us-east-2 US East (Ohio)
+us-east-1 US East (N. Virginia)
+us-west-1 US West (N. California)
+us-west-2 US West (Oregon)""")
parser.add_argument(
"--no-cache", action="store_true", help="Execute all
sections, do not rely on cached data.")
parser.add_argument("hostname")