From 063f6a758fc43ae9be92c99d10a4d2b9f2c3c938 Mon Sep 17 00:00:00 2001 From: Ben Watson Date: Fri, 31 May 2024 10:33:19 -0400 Subject: [PATCH] adds examples to readme --- README.md | 40 ++++++++++++++++++++++++++++++------- dist/src/lib/program.js | 2 +- dist/src/lib/program.js.map | 2 +- src/lib/program.ts | 5 ++++- 4 files changed, 39 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0635e4f..673a290 100644 --- a/README.md +++ b/README.md @@ -131,16 +131,16 @@ This will create your sessions with the maximum life and automatically renew the Arguments: -* `-p [password]` Your password * `-a [account]` The ALKS account to use, be sure to wrap in quotes * `-r [role]` The ALKS role to use, be sure to wrap in quotes -* `-i` Specifies you wish to work as an IAM/Admin user +* `-i` Specifies you wish to work as an IAM/Admin user. This flag is deprecated since it is no longer needed and will not make a difference in the generated session credentials * `-o [output]` Output format. Supports: `env`, `json`, `docker`, `creds`, `idea`, `export`, `set`, `powershell`, `aws`, `fishshell`, `terraformenv`, `terraformarg` * `-n` If output is set to creds, use this named profile (defaults to default) * `-N` Forces a new session to be generated * `-d` Uses your default account from `alks developer configure` * `-f` If output is set to creds, force overwriting of AWS credentials if they already exist * `-F` Filters favorite accounts +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) Output values: @@ -148,6 +148,18 @@ Output values: * `AWS_SECRET_ACCESS_KEY` * `AWS_SESSION_TOKEN` +Example: + +Creating a new session under the default profile in your `~/.aws/credentials` file. (Note: if you still get errors saying access is denied after generating a new session like this, you may need to clear any environment variables prefixed with `AWS_` since credentials found in those variables, even if they are expired, will take precedence over your `~/.aws/credentials` file) +```sh +alks sessions open -a 'awstest123' -r 'Admin' --duration 1 -o creds -f +``` + +Creating a new session by using environment variables (Note: due to a limitation with shell commands, the ALKS CLI is only able to output the commands used to set environment variables but it cannot set them for you. That is why you have to wrap a call like this with `eval`) +```sh +eval $(alks sessions open -a 'awstest123' -r 'Admin' --duration 1 -o env) +``` + ### `sessions console` `alks sessions console` - Open the AWS console in the default browser for the specified ALKS session. @@ -171,7 +183,7 @@ Arguments: Arguments: -* `-p [password]` Your password +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) ## IAM @@ -181,16 +193,24 @@ Arguments: Arguments: -* `-p [password]` Your password +* `-a [account]` The ALKS account to use, be sure to wrap in quotes +* `-r [role]` The ALKS login role to use to create your role, be sure to wrap in quotes * `-n [roleName]` The name of the role, be sure to wrap in quotes, alphanumeric including: `@+=._-` * `-p [trustPolicy]` A trust policy as a JSON string. Must include trustPolicy or roleType, but not both * `-t [roleType]` The role type, to see available roles: `alks iam roletypes`, be sure to wrap in quotes. Must include roleType or trust policy, but not both. We recommend specifying the trust policy instead since role types are a legacy feature and no new role types are being created for new AWS services * `-d`: Include default policies, defaults to false * `-F` Filters favorite accounts * `-k [tags]` A list of resource tags. Can either be a JSON representation '[{"Key":"string","Value":"string"},{"Key":"string","Value":"string"}]' or shorthand Key=string,Value=string Key=string,Value=string +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) Outputs the created role's ARN. +Example: + +```sh +alks iam createrole -a 'awstest123' -r 'Admin' -n 'MyRole' -p '{"Version":"2012-10-17","Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"ec2.amazonaws.com"}}]}' +``` + ### `iam createtrustrole` DEPRECATED: we recommend using `iam createrole` instead since you can use it to create all the same types of roles as this command and more @@ -215,8 +235,14 @@ Outputs the created role's ARN. Arguments: -* `-p [password]` Your password +* `-a [account]` The ALKS account to use, be sure to wrap in quotes +* `-r [role]` The ALKS login role to use to create your role, be sure to wrap in quotes * `-n [roleName]` The name of the role, be sure to wrap in quotes, alphanumeric including: `@+=._-` +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) + +```sh +alks iam deleterole -a 'awstest123' -r 'Admin' -n 'MyRole' +``` ### `iam roletypes` @@ -267,7 +293,7 @@ Outputs the created user's ARN along with the long term access key and long term Arguments: -* `-p [password]` Your password +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) * `-n [iamusername]` The name of the IAM user, be sure to wrap in quotes, alphanumeric including: `@+=._-` ## Metadata Server @@ -280,7 +306,7 @@ The metadata server listens on http://169.254.169.254 and mimicks the [AWS EC2 I Arguments: -* `-p [password]` Your password +* `-p [password]` Your password (only needed if not currently authenticated and using basic authentication) * `-a [account]` The ALKS account to use, be sure to wrap in quotes * `-r [role]` The ALKS role to use, be sure to wrap in quotes * `-i` Specifies you wish to work as an IAM/Admin user diff --git a/dist/src/lib/program.js b/dist/src/lib/program.js index c0b2f2b..3efe309 100644 --- a/dist/src/lib/program.js +++ b/dist/src/lib/program.js @@ -65,7 +65,7 @@ sessions .description('creates or resumes a session') .option('-a, --account ', 'the 12-digit ID or alias for an AWS account') .option('-r, --role ', 'the ALKS IAM role to use to perform the request') - .option('-i, --iam', 'create an IAM session') + .option('-i, --iam', 'create an IAM session. This flag is deprecated since it is no longer needed and will not make a difference in the generated session credentials') .option('-d, --default', 'uses your default account from "alks developer configure"') .option('-D, --duration', 'the duration of the session in hours. If the duration is over the max duration allowed for the role, the max duration will be used instead', '12') .option('-N, --newSession', 'forces a new session to be generated') diff --git a/dist/src/lib/program.js.map b/dist/src/lib/program.js.map index e1055f3..186ffe7 100644 --- a/dist/src/lib/program.js.map +++ b/dist/src/lib/program.js.map @@ -1 +1 @@ -{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF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AAM,CAAC;KACrE,MAAM,CACL,6BAA6B,EAC7B,iFAAiF,EACjF,KAAK,CACN;KACA,MAAM,CAAC,yCAAqB,CAAC,CAAC;AAEjC,kBAAe,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/lib/program.ts"],"names":[],"mappings":";;AAAA,yCAAoC;AACpC,qDAA6C;AAC7C,4DAIgC;AAChC,2EAA4E;AAC5E,uFAAwF;AACxF,2EAA4E;AAC5E,iFAAkF;AAClF,uEAAwE;AACxE,yEAA0E;AAC1E,iFAAkF;AAClF,2EAA4E;AAC5E,6EAA8E;AAC9E,2EAA4E;AAC5E,uFAAwF;AACxF,6EAA8E;AAC9E,2EAA4E;AAC5E,8EAA+E;AAC/E,qFAAsF;AACtF,uFAAwF;AACxF,6EAA8E;AAC9E,+EAAgF;AAChF,qFAAsF;AACtF,iFAAkF;AAClF,uFAAwF;AACxF,gEAA8D;AAC9D,yCAAgC;AAChC,wEAAyE;AACzE,8EAA+E;AAC/E,sEAAuE;AACvE,0EAA2E;AAC3E,oEAAqE;AAErE,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AACjD,MAAM,YAAY,GAAG,6CAA6C,CAAC;AAEnE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,YAAY,EAAE,CAAC;AAEvB,OAAO,CAAC,eAAe,CAAC;IACtB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;QAChB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAAE;YAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC3B;IACH,CAAC;CACF,CAAC,CAAC;AAEH,OAAO;KACJ,OAAO,CAAC,sBAAO,EAAE,WAAW,CAAC;KAC7B,MAAM,CAAC,eAAe,EAAE,qCAAqC,CAAC;KAC9D,M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QAAQ;KACL,OAAO,CAAC,QAAQ,CAAC;KACjB,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,CAAC,QAAQ,CAAC;KACf,WAAW,CAAC,qBAAqB,CAAC;KAClC,MAAM,CACL,WAAW,EACX,yFAAyF,CAC1F;KACA,MAAM,CACL,8BAA8B,EAC9B,kHAAkH,CACnH;KACA,MAAM,CACL,yBAAyB,EACzB,6FAA6F,CAC9F;KACA,MAAM,CACL,aAAa,EACb,wDAAwD,CACzD;KACA,MAAM,CAAC,+CAAwB,CAAC,CAAC;AAEpC,QAAQ;KACL,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,iBAAiB,CAAC;KAC9B,MAAM,CACL,8BAA8B,EAC9B,kHAAkH,CACnH;KACA,MAAM,CACL,yBAAyB,EACzB,6FAA6F,CAC9F;KACA,MAAM,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,CAAC;KACrE,MAAM,CACL,6BAA6B,EAC7B,iFAAiF,EACjF,KAAK,CACN;KACA,MAAM,CAAC,yCAAqB,CAAC,CAAC;AAEjC,kBAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/src/lib/program.ts b/src/lib/program.ts index 16ea9fb..5ac9884 100644 --- a/src/lib/program.ts +++ b/src/lib/program.ts @@ -88,7 +88,10 @@ sessions '-r, --role ', 'the ALKS IAM role to use to perform the request' ) - .option('-i, --iam', 'create an IAM session') + .option( + '-i, --iam', + 'create an IAM session. This flag is deprecated since it is no longer needed and will not make a difference in the generated session credentials' + ) .option( '-d, --default', 'uses your default account from "alks developer configure"'