You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(aws-install): add credential_profile flag (#1274)
This commit adds a new CLI flag to the
`lacework agent aws-install <method>` command called
`credential_profile`. This flag allows the user to specify an AWS
credential profile for `aws-install` to use if the `default` profile is
not appropriate.
This flag applies for:
* `aws-install ec2ic`
* `aws-install ec2ssh`
* `aws-install ec2ssm`
Fixes RAIN-58289
Signed-off-by: Nick Schmeller <nick.schmeller@lacework.net>
AWS credentials are read from the following environment variables:
46
50
- AWS_ACCESS_KEY_ID
47
51
- AWS_SECRET_ACCESS_KEY
@@ -52,17 +56,18 @@ Usage:
52
56
lacework agent aws-install ec2ssm [flags]
53
57
54
58
Flags:
55
-
-d, --dry_run set this flag to print out the target instances and exit
56
-
-f, --force_reinstall set this flag to force-reinstall the agent, even if already running on the target instance
57
-
-h, --help help for ec2ssm
58
-
--iam_role_name string IAM role name (not ARN) with SSM policy, if not provided then an ephemeral role will be created
59
-
-r, --include_regions strings list of regions to filter on
60
-
-n, --max_parallelism int maximum number of workers executing AWS API calls, set if rate limits are lower or higher than normal (default 50)
61
-
--server_url https:// server URL that agents will talk to, prefixed with https:// (default "https://api.lacework.net")
62
-
--skip_iam_role_creation set this flag to skip creating an IAM role and instance profile and associating the instance profile. Assumes all instances are already setup for SSM
63
-
--tag strings only install agents on infra with this tag
64
-
--tag_key string only install agents on infra with this tag key set
65
-
--token string agent access token
59
+
--credential_profile string AWS credential profile to use (default "default")
60
+
-d, --dry_run set this flag to print out the target instances and exit
61
+
-f, --force_reinstall set this flag to force-reinstall the agent, even if already running on the target instance
62
+
-h, --help help for ec2ssm
63
+
--iam_role_name string IAM role name (not ARN) with SSM policy, if not provided then an ephemeral role will be created
64
+
-r, --include_regions strings list of regions to filter on
65
+
-n, --max_parallelism int maximum number of workers executing AWS API calls, set if rate limits are lower or higher than normal (default 50)
66
+
--server_url https:// server URL that agents will talk to, prefixed with https:// (default "https://api.lacework.net")
67
+
--skip_iam_role_creation set this flag to skip creating an IAM role and instance profile and associating the instance profile. Assumes all instances are already setup for SSM
68
+
--tag strings only install agents on infra with this tag
69
+
--tag_key string only install agents on infra with this tag key set
70
+
--token string agent access token
66
71
67
72
Global Flags:
68
73
-a, --account string account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
0 commit comments