@vizamodo/aws-sts-core 0.2.15 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ export declare function buildFederationLoginUrl(input: {
3
3
  secretAccessKey: string;
4
4
  sessionToken: string;
5
5
  region: string;
6
- intent?: "console" | "billing" | "dynamodb";
6
+ intent?: "console" | "billing" | "dynamodb" | "ssm";
7
7
  }): Promise<{
8
8
  loginUrl: string;
9
9
  shortUrl: string;
@@ -24,6 +24,10 @@ export async function buildFederationLoginUrl(input) {
24
24
  destinationUrl =
25
25
  `https://${input.region}.console.aws.amazon.com/dynamodbv2/home?region=${input.region}#dashboard`;
26
26
  break;
27
+ case "ssm":
28
+ destinationUrl =
29
+ `https://${input.region}.console.aws.amazon.com/systems-manager/parameters/?region=${input.region}&tab=Table`;
30
+ break;
27
31
  case "console":
28
32
  default:
29
33
  destinationUrl =
package/dist/sts/issue.js CHANGED
@@ -22,16 +22,20 @@ async function getSigningMaterial(input) {
22
22
  }
23
23
  function resolveSessionTtlByProfile(profile) {
24
24
  switch (profile) {
25
- case "HubConsoleReadOnly":
26
- return 12 * 60 * 60; // 12h
27
- case "HubBillingReadonly":
28
- case "HubBillingAdmin":
29
- return 2 * 60 * 60; // 2h
30
- case "HubRuntime":
31
- return 90 * 60; // 1h30m
25
+ // Runtime
26
+ case "Runtime":
27
+ return 90 * 60; // 90 minutes
28
+ // Console profiles
29
+ case "ConsoleReadOnly":
30
+ case "ConsoleViewOnlyProd":
31
+ return 12 * 60 * 60; // 12 hours
32
+ // Billing profiles
33
+ case "BillingReadOnly":
34
+ case "BillingAdmin":
35
+ case "BillingAccountant":
36
+ return 2 * 60 * 60; // 2 hours
32
37
  default:
33
- // fail-safe
34
- return 2 * 60 * 60;
38
+ return 2 * 60 * 60; // fail-safe
35
39
  }
36
40
  }
37
41
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.2.15",
3
+ "version": "0.2.19",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",