@granite-js/pulumi-aws 0.1.34 → 1.0.1

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +4 -116
  2. package/dist/chunk-23MVQUOJ.js +1630 -0
  3. package/dist/chunk-24XYHOWM.js +171 -0
  4. package/dist/chunk-3AVBP57V.js +1598 -0
  5. package/dist/chunk-3JKQPIJ2.js +460 -0
  6. package/dist/{chunk-ITI6QA2Q.js → chunk-3OYGHA4S.js} +1 -1
  7. package/dist/{chunk-IEZY5C3G.js → chunk-46DIC54Q.js} +49 -37
  8. package/dist/chunk-57WYIP4I.js +808 -0
  9. package/dist/{chunk-WCHHWTND.js → chunk-63Q3RLAK.js} +93 -59
  10. package/dist/chunk-6KRYZP6R.js +28 -0
  11. package/dist/{chunk-QAE2S7MG.js → chunk-7NN7DVGK.js} +2050 -552
  12. package/dist/{chunk-5W7B34BN.js → chunk-ASGFIK4A.js} +2231 -464
  13. package/dist/chunk-BTBQTDRJ.js +174 -0
  14. package/dist/chunk-DDZTWBHZ.js +154 -0
  15. package/dist/chunk-G3FWLTNJ.js +10 -0
  16. package/dist/{chunk-TJ744C2T.js → chunk-GJFKL6XM.js} +43 -38
  17. package/dist/chunk-H4QJ5O4E.js +36 -0
  18. package/dist/{chunk-X6XO7USX.js → chunk-LCO5F3JB.js} +109 -56
  19. package/dist/chunk-NDDYFDCU.js +60 -0
  20. package/dist/chunk-OCHPLE5N.js +28 -0
  21. package/dist/chunk-OSJA4YYQ.js +846 -0
  22. package/dist/chunk-PIT3K3NC.js +464 -0
  23. package/dist/chunk-QCKAO4UT.js +476 -0
  24. package/dist/{chunk-64IS37V6.js → chunk-RYIGWCGK.js} +1 -6
  25. package/dist/chunk-S4LJWEXU.js +37 -0
  26. package/dist/chunk-SJ26Y3GW.js +472 -0
  27. package/dist/chunk-TDZTH7TL.js +60 -0
  28. package/dist/chunk-THUA35UY.js +35 -0
  29. package/dist/{chunk-IUKLHJNE.js → chunk-V7TRGEV6.js} +4 -7
  30. package/dist/{chunk-KGNTV362.js → chunk-WDFKVCPC.js} +66 -34
  31. package/dist/{chunk-B7OAPHPY.js → chunk-YWWEFWFD.js} +3 -3
  32. package/dist/chunk-Z4UYYQ4J.js +42 -0
  33. package/dist/chunk-ZBT5SDIQ.js +16528 -0
  34. package/dist/chunk-ZIHRRTTA.js +24 -0
  35. package/dist/{dist-es-CDFIYJVE.js → dist-es-3VZ2IGGJ.js} +18 -15
  36. package/dist/{dist-es-SUPEA6VE-3B5JSW5C.js → dist-es-BQW4ETQH-C7ZSD5EG.js} +8 -25
  37. package/dist/{dist-es-GHYMLBON.js → dist-es-HSWXMGNC.js} +21 -21
  38. package/dist/{dist-es-OCQVKISC-TNAJ62WG.js → dist-es-IDBNBAO5-H3TO63FG.js} +15 -18
  39. package/dist/{dist-es-S75EKWRJ.js → dist-es-KPJNIAPT.js} +9 -10
  40. package/dist/{dist-es-PRWCVZGQ-HTTVI42T.js → dist-es-LZDRG6RP-SP2FWWEO.js} +3 -4
  41. package/dist/{dist-es-OZGLUDWT.js → dist-es-PIWY5TOR.js} +49 -26
  42. package/dist/{dist-es-ADTONJUN-RVFWNZHO.js → dist-es-R4LD2OHZ-B5MB6BR2.js} +11 -13
  43. package/dist/dist-es-S2KJK4L2-5GDBXJIO.js +470 -0
  44. package/dist/{dist-es-XQME5F6W.js → dist-es-THYWPEKB.js} +12 -10
  45. package/dist/{dist-es-HJVOMDYC-PIAMWMAL.js → dist-es-TIYLKN6W-BAHZRZH5.js} +7 -13
  46. package/dist/{dist-es-IDBDK36G-Y6TQMRO5.js → dist-es-VORPMM2F-WOMP2FYQ.js} +37 -30
  47. package/dist/{dist-es-WQHDOVD7.js → dist-es-WESJCADT.js} +3 -4
  48. package/dist/dist-es-XMOG24OT.js +490 -0
  49. package/dist/event-streams-L7RH32OW-AFMBEYJJ.js +237 -0
  50. package/dist/event-streams-NGUY2RWE.js +237 -0
  51. package/dist/index.cjs +2 -2
  52. package/dist/index.js +2 -2
  53. package/dist/lambda/auto-cache-removal.cjs +28894 -16488
  54. package/dist/lambda/auto-cache-removal.js +11574 -2713
  55. package/dist/lambda/origin-request.cjs +22351 -17619
  56. package/dist/lambda/origin-request.js +21 -17
  57. package/dist/lambda/origin-response.cjs +22219 -17387
  58. package/dist/lambda/origin-response.js +17 -13
  59. package/dist/{loadSso-CZSSLFH6-SA5HOQAX.js → loadSso-F4PTCHDN-YR3RRUYW.js} +330 -227
  60. package/dist/{loadSso-T7GJVVO2.js → loadSso-LG7MFP7N.js} +344 -223
  61. package/dist/signin-P7DNG43W.js +658 -0
  62. package/dist/signin-XWTOVLF3-4ENWNEF7.js +630 -0
  63. package/dist/{sso-oidc-PKO5GYK5-LC65L46O.js → sso-oidc-FQQGUOJL.js} +293 -332
  64. package/dist/{sso-oidc-55SJ27II.js → sso-oidc-RRDYLOJY-FK3AUTOI.js} +263 -337
  65. package/dist/{sts-OPF4H3GL.js → sts-7FBOVTCN.js} +674 -601
  66. package/dist/{sts-P7Q3MYTS-BKGWHQE4.js → sts-TBWJ374A-DHXXCVJJ.js} +651 -608
  67. package/package.json +5 -5
  68. package/dist/chunk-AEOST5WF.js +0 -63
  69. package/dist/chunk-FO7L563E.js +0 -13695
  70. package/dist/chunk-FRWSD3YQ.js +0 -1722
  71. package/dist/chunk-JBVMOFGH.js +0 -152
  72. package/dist/chunk-JSBRDJBE.js +0 -30
  73. package/dist/chunk-KRJS4RAS.js +0 -1732
  74. package/dist/chunk-M5GUUX64.js +0 -63
  75. package/dist/chunk-SX6SVQKS.js +0 -67
  76. package/dist/chunk-UNXXS5FM.js +0 -120
  77. package/dist/chunk-UT2RMOJS.js +0 -2447
  78. package/dist/chunk-VOTRVWIB.js +0 -1965
  79. package/dist/chunk-W3VXP3A3.js +0 -119
  80. package/dist/chunk-XLUI7RQ4.js +0 -115
  81. package/dist/dist-es-2M7RLZ5O.js +0 -200
  82. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +0 -196
@@ -1,119 +0,0 @@
1
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/ProviderError.js
2
- var ProviderError = class _ProviderError extends Error {
3
- constructor(message, options = true) {
4
- let logger;
5
- let tryNextLink = true;
6
- if (typeof options === "boolean") {
7
- logger = void 0;
8
- tryNextLink = options;
9
- } else if (options != null && typeof options === "object") {
10
- logger = options.logger;
11
- tryNextLink = options.tryNextLink ?? true;
12
- }
13
- super(message);
14
- this.name = "ProviderError";
15
- this.tryNextLink = tryNextLink;
16
- Object.setPrototypeOf(this, _ProviderError.prototype);
17
- logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
18
- }
19
- static from(error, options = true) {
20
- return Object.assign(new this(error.message, options), error);
21
- }
22
- };
23
-
24
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
25
- var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
26
- constructor(message, options = true) {
27
- super(message, options);
28
- this.name = "CredentialsProviderError";
29
- Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
30
- }
31
- };
32
-
33
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js
34
- var TokenProviderError = class _TokenProviderError extends ProviderError {
35
- constructor(message, options = true) {
36
- super(message, options);
37
- this.name = "TokenProviderError";
38
- Object.setPrototypeOf(this, _TokenProviderError.prototype);
39
- }
40
- };
41
-
42
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/chain.js
43
- var chain = (...providers) => async () => {
44
- if (providers.length === 0) {
45
- throw new ProviderError("No providers in chain");
46
- }
47
- let lastProviderError;
48
- for (const provider of providers) {
49
- try {
50
- const credentials = await provider();
51
- return credentials;
52
- } catch (err) {
53
- lastProviderError = err;
54
- if (err?.tryNextLink) {
55
- continue;
56
- }
57
- throw err;
58
- }
59
- }
60
- throw lastProviderError;
61
- };
62
-
63
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/fromStatic.js
64
- var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
65
-
66
- // ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/memoize.js
67
- var memoize = (provider, isExpired, requiresRefresh) => {
68
- let resolved;
69
- let pending;
70
- let hasResult;
71
- let isConstant = false;
72
- const coalesceProvider = async () => {
73
- if (!pending) {
74
- pending = provider();
75
- }
76
- try {
77
- resolved = await pending;
78
- hasResult = true;
79
- isConstant = false;
80
- } finally {
81
- pending = void 0;
82
- }
83
- return resolved;
84
- };
85
- if (isExpired === void 0) {
86
- return async (options) => {
87
- if (!hasResult || options?.forceRefresh) {
88
- resolved = await coalesceProvider();
89
- }
90
- return resolved;
91
- };
92
- }
93
- return async (options) => {
94
- if (!hasResult || options?.forceRefresh) {
95
- resolved = await coalesceProvider();
96
- }
97
- if (isConstant) {
98
- return resolved;
99
- }
100
- if (requiresRefresh && !requiresRefresh(resolved)) {
101
- isConstant = true;
102
- return resolved;
103
- }
104
- if (isExpired(resolved)) {
105
- await coalesceProvider();
106
- return resolved;
107
- }
108
- return resolved;
109
- };
110
- };
111
-
112
- export {
113
- ProviderError,
114
- CredentialsProviderError,
115
- TokenProviderError,
116
- chain,
117
- fromStatic,
118
- memoize
119
- };
@@ -1,115 +0,0 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-JBVMOFGH.js";
4
-
5
- // ../deployment-manager/dist/chunk-MBBVBARO.js
6
- init_esm_shims();
7
- var SMITHY_CONTEXT_KEY = "__smithy_context";
8
- init_esm_shims();
9
- init_esm_shims();
10
- init_esm_shims();
11
- init_esm_shims();
12
- var HttpAuthLocation;
13
- (function(HttpAuthLocation2) {
14
- HttpAuthLocation2["HEADER"] = "header";
15
- HttpAuthLocation2["QUERY"] = "query";
16
- })(HttpAuthLocation || (HttpAuthLocation = {}));
17
- init_esm_shims();
18
- var HttpApiKeyAuthLocation;
19
- (function(HttpApiKeyAuthLocation2) {
20
- HttpApiKeyAuthLocation2["HEADER"] = "header";
21
- HttpApiKeyAuthLocation2["QUERY"] = "query";
22
- })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
23
- init_esm_shims();
24
- init_esm_shims();
25
- init_esm_shims();
26
- init_esm_shims();
27
- init_esm_shims();
28
- init_esm_shims();
29
- init_esm_shims();
30
- init_esm_shims();
31
- init_esm_shims();
32
- init_esm_shims();
33
- init_esm_shims();
34
- init_esm_shims();
35
- init_esm_shims();
36
- init_esm_shims();
37
- init_esm_shims();
38
- var EndpointURLScheme;
39
- (function(EndpointURLScheme2) {
40
- EndpointURLScheme2["HTTP"] = "http";
41
- EndpointURLScheme2["HTTPS"] = "https";
42
- })(EndpointURLScheme || (EndpointURLScheme = {}));
43
- init_esm_shims();
44
- init_esm_shims();
45
- init_esm_shims();
46
- init_esm_shims();
47
- init_esm_shims();
48
- init_esm_shims();
49
- init_esm_shims();
50
- init_esm_shims();
51
- init_esm_shims();
52
- init_esm_shims();
53
- var AlgorithmId;
54
- (function(AlgorithmId2) {
55
- AlgorithmId2["MD5"] = "md5";
56
- AlgorithmId2["CRC32"] = "crc32";
57
- AlgorithmId2["CRC32C"] = "crc32c";
58
- AlgorithmId2["SHA1"] = "sha1";
59
- AlgorithmId2["SHA256"] = "sha256";
60
- })(AlgorithmId || (AlgorithmId = {}));
61
- init_esm_shims();
62
- init_esm_shims();
63
- init_esm_shims();
64
- var FieldPosition;
65
- (function(FieldPosition2) {
66
- FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
67
- FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
68
- })(FieldPosition || (FieldPosition = {}));
69
- init_esm_shims();
70
- init_esm_shims();
71
- init_esm_shims();
72
- init_esm_shims();
73
- init_esm_shims();
74
- init_esm_shims();
75
- init_esm_shims();
76
- init_esm_shims();
77
- init_esm_shims();
78
- var IniSectionType;
79
- (function(IniSectionType2) {
80
- IniSectionType2["PROFILE"] = "profile";
81
- IniSectionType2["SSO_SESSION"] = "sso-session";
82
- IniSectionType2["SERVICES"] = "services";
83
- })(IniSectionType || (IniSectionType = {}));
84
- init_esm_shims();
85
- init_esm_shims();
86
- init_esm_shims();
87
- init_esm_shims();
88
- init_esm_shims();
89
- init_esm_shims();
90
- init_esm_shims();
91
- init_esm_shims();
92
- init_esm_shims();
93
- init_esm_shims();
94
- init_esm_shims();
95
- init_esm_shims();
96
- var RequestHandlerProtocol;
97
- (function(RequestHandlerProtocol2) {
98
- RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
99
- RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
100
- RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
101
- })(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
102
- init_esm_shims();
103
- init_esm_shims();
104
- init_esm_shims();
105
- init_esm_shims();
106
- init_esm_shims();
107
- init_esm_shims();
108
- init_esm_shims();
109
-
110
- export {
111
- SMITHY_CONTEXT_KEY,
112
- EndpointURLScheme,
113
- AlgorithmId,
114
- IniSectionType
115
- };
@@ -1,200 +0,0 @@
1
- import {
2
- getProfileName,
3
- parseKnownFiles
4
- } from "./chunk-KGNTV362.js";
5
- import {
6
- setCredentialFeature
7
- } from "./chunk-ITI6QA2Q.js";
8
- import "./chunk-M5GUUX64.js";
9
- import {
10
- CredentialsProviderError,
11
- chain
12
- } from "./chunk-W3VXP3A3.js";
13
- import "./chunk-JSBRDJBE.js";
14
-
15
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
16
- var resolveCredentialSource = (credentialSource, profileName, logger) => {
17
- const sourceProvidersMap = {
18
- EcsContainer: async (options) => {
19
- const { fromHttp } = await import("./dist-es-CDFIYJVE.js");
20
- const { fromContainerMetadata } = await import("./dist-es-GHYMLBON.js");
21
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
22
- return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
23
- },
24
- Ec2InstanceMetadata: async (options) => {
25
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
26
- const { fromInstanceMetadata } = await import("./dist-es-GHYMLBON.js");
27
- return async () => fromInstanceMetadata(options)().then(setNamedProvider);
28
- },
29
- Environment: async (options) => {
30
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
31
- const { fromEnv } = await import("./dist-es-WQHDOVD7.js");
32
- return async () => fromEnv(options)().then(setNamedProvider);
33
- }
34
- };
35
- if (credentialSource in sourceProvidersMap) {
36
- return sourceProvidersMap[credentialSource];
37
- } else {
38
- throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
39
- }
40
- };
41
- var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
42
-
43
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
44
- var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
45
- return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
46
- };
47
- var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
48
- const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
49
- if (withSourceProfile) {
50
- logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
51
- }
52
- return withSourceProfile;
53
- };
54
- var isCredentialSourceProfile = (arg, { profile, logger }) => {
55
- const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
56
- if (withProviderProfile) {
57
- logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
58
- }
59
- return withProviderProfile;
60
- };
61
- var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
62
- options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
63
- const profileData = profiles[profileName];
64
- const { source_profile, region } = profileData;
65
- if (!options.roleAssumer) {
66
- const { getDefaultRoleAssumer } = await import("./sts-OPF4H3GL.js");
67
- options.roleAssumer = getDefaultRoleAssumer({
68
- ...options.clientConfig,
69
- credentialProviderLogger: options.logger,
70
- parentClientConfig: {
71
- ...options?.parentClientConfig,
72
- region: region ?? options?.parentClientConfig?.region
73
- }
74
- }, options.clientPlugins);
75
- }
76
- if (source_profile && source_profile in visitedProfiles) {
77
- throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
78
- }
79
- options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
80
- const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
81
- ...visitedProfiles,
82
- [source_profile]: true
83
- }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
84
- if (isCredentialSourceWithoutRoleArn(profileData)) {
85
- return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
86
- } else {
87
- const params = {
88
- RoleArn: profileData.role_arn,
89
- RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
90
- ExternalId: profileData.external_id,
91
- DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
92
- };
93
- const { mfa_serial } = profileData;
94
- if (mfa_serial) {
95
- if (!options.mfaCodeProvider) {
96
- throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
97
- }
98
- params.SerialNumber = mfa_serial;
99
- params.TokenCode = await options.mfaCodeProvider(mfa_serial);
100
- }
101
- const sourceCreds = await sourceCredsProvider;
102
- return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
103
- }
104
- };
105
- var isCredentialSourceWithoutRoleArn = (section) => {
106
- return !section.role_arn && !!section.credential_source;
107
- };
108
-
109
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
110
- var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
111
- var resolveProcessCredentials = async (options, profile) => import("./dist-es-S75EKWRJ.js").then(({ fromProcess }) => fromProcess({
112
- ...options,
113
- profile
114
- })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
115
-
116
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
117
- var resolveSsoCredentials = async (profile, profileData, options = {}) => {
118
- const { fromSSO } = await import("./dist-es-OZGLUDWT.js");
119
- return fromSSO({
120
- profile,
121
- logger: options.logger,
122
- parentClientConfig: options.parentClientConfig,
123
- clientConfig: options.clientConfig
124
- })().then((creds) => {
125
- if (profileData.sso_session) {
126
- return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
127
- } else {
128
- return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
129
- }
130
- });
131
- };
132
- var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
133
-
134
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
135
- var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
136
- var resolveStaticCredentials = async (profile, options) => {
137
- options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
138
- const credentials = {
139
- accessKeyId: profile.aws_access_key_id,
140
- secretAccessKey: profile.aws_secret_access_key,
141
- sessionToken: profile.aws_session_token,
142
- ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
143
- ...profile.aws_account_id && { accountId: profile.aws_account_id }
144
- };
145
- return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
146
- };
147
-
148
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
149
- var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
150
- var resolveWebIdentityCredentials = async (profile, options) => import("./dist-es-XQME5F6W.js").then(({ fromTokenFile }) => fromTokenFile({
151
- webIdentityTokenFile: profile.web_identity_token_file,
152
- roleArn: profile.role_arn,
153
- roleSessionName: profile.role_session_name,
154
- roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
155
- logger: options.logger,
156
- parentClientConfig: options.parentClientConfig
157
- })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
158
-
159
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
160
- var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
161
- const data = profiles[profileName];
162
- if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
163
- return resolveStaticCredentials(data, options);
164
- }
165
- if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
166
- return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
167
- }
168
- if (isStaticCredsProfile(data)) {
169
- return resolveStaticCredentials(data, options);
170
- }
171
- if (isWebIdentityProfile(data)) {
172
- return resolveWebIdentityCredentials(data, options);
173
- }
174
- if (isProcessProfile(data)) {
175
- return resolveProcessCredentials(options, profileName);
176
- }
177
- if (isSsoProfile(data)) {
178
- return await resolveSsoCredentials(profileName, data, options);
179
- }
180
- throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
181
- };
182
-
183
- // ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
184
- var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
185
- const init = {
186
- ..._init,
187
- parentClientConfig: {
188
- ...callerClientConfig,
189
- ..._init.parentClientConfig
190
- }
191
- };
192
- init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
193
- const profiles = await parseKnownFiles(init);
194
- return resolveProfileData(getProfileName({
195
- profile: _init.profile ?? callerClientConfig?.profile
196
- }), profiles, init);
197
- };
198
- export {
199
- fromIni
200
- };
@@ -1,196 +0,0 @@
1
- import {
2
- getProfileName,
3
- parseKnownFiles
4
- } from "./chunk-TJ744C2T.js";
5
- import {
6
- setCredentialFeature
7
- } from "./chunk-64IS37V6.js";
8
- import "./chunk-XLUI7RQ4.js";
9
- import {
10
- CredentialsProviderError,
11
- chain,
12
- init_esm_shims
13
- } from "./chunk-JBVMOFGH.js";
14
- import "./chunk-JSBRDJBE.js";
15
-
16
- // ../deployment-manager/dist/dist-es-Y7VN37H5.js
17
- init_esm_shims();
18
- init_esm_shims();
19
- init_esm_shims();
20
- init_esm_shims();
21
- init_esm_shims();
22
- var resolveCredentialSource = (credentialSource, profileName, logger) => {
23
- const sourceProvidersMap = {
24
- EcsContainer: async (options) => {
25
- const { fromHttp } = await import("./dist-es-OCQVKISC-TNAJ62WG.js");
26
- const { fromContainerMetadata } = await import("./dist-es-SUPEA6VE-3B5JSW5C.js");
27
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
28
- return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
29
- },
30
- Ec2InstanceMetadata: async (options) => {
31
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
32
- const { fromInstanceMetadata } = await import("./dist-es-SUPEA6VE-3B5JSW5C.js");
33
- return async () => fromInstanceMetadata(options)().then(setNamedProvider);
34
- },
35
- Environment: async (options) => {
36
- logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
37
- const { fromEnv } = await import("./dist-es-PRWCVZGQ-HTTVI42T.js");
38
- return async () => fromEnv(options)().then(setNamedProvider);
39
- }
40
- };
41
- if (credentialSource in sourceProvidersMap) {
42
- return sourceProvidersMap[credentialSource];
43
- } else {
44
- throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
45
- }
46
- };
47
- var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
48
- var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
49
- return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
50
- };
51
- var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
52
- const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
53
- if (withSourceProfile) {
54
- logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
55
- }
56
- return withSourceProfile;
57
- };
58
- var isCredentialSourceProfile = (arg, { profile, logger }) => {
59
- const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
60
- if (withProviderProfile) {
61
- logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
62
- }
63
- return withProviderProfile;
64
- };
65
- var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
66
- options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
67
- const profileData = profiles[profileName];
68
- const { source_profile, region } = profileData;
69
- if (!options.roleAssumer) {
70
- const { getDefaultRoleAssumer } = await import("./sts-P7Q3MYTS-BKGWHQE4.js");
71
- options.roleAssumer = getDefaultRoleAssumer({
72
- ...options.clientConfig,
73
- credentialProviderLogger: options.logger,
74
- parentClientConfig: {
75
- ...options?.parentClientConfig,
76
- region: region ?? options?.parentClientConfig?.region
77
- }
78
- }, options.clientPlugins);
79
- }
80
- if (source_profile && source_profile in visitedProfiles) {
81
- throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
82
- }
83
- options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
84
- const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
85
- ...visitedProfiles,
86
- [source_profile]: true
87
- }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
88
- if (isCredentialSourceWithoutRoleArn(profileData)) {
89
- return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
90
- } else {
91
- const params = {
92
- RoleArn: profileData.role_arn,
93
- RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
94
- ExternalId: profileData.external_id,
95
- DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
96
- };
97
- const { mfa_serial } = profileData;
98
- if (mfa_serial) {
99
- if (!options.mfaCodeProvider) {
100
- throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
101
- }
102
- params.SerialNumber = mfa_serial;
103
- params.TokenCode = await options.mfaCodeProvider(mfa_serial);
104
- }
105
- const sourceCreds = await sourceCredsProvider;
106
- return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
107
- }
108
- };
109
- var isCredentialSourceWithoutRoleArn = (section) => {
110
- return !section.role_arn && !!section.credential_source;
111
- };
112
- init_esm_shims();
113
- var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
114
- var resolveProcessCredentials = async (options, profile) => import("./dist-es-HJVOMDYC-PIAMWMAL.js").then(({ fromProcess }) => fromProcess({
115
- ...options,
116
- profile
117
- })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
118
- init_esm_shims();
119
- var resolveSsoCredentials = async (profile, profileData, options = {}) => {
120
- const { fromSSO } = await import("./dist-es-IDBDK36G-Y6TQMRO5.js");
121
- return fromSSO({
122
- profile,
123
- logger: options.logger,
124
- parentClientConfig: options.parentClientConfig,
125
- clientConfig: options.clientConfig
126
- })().then((creds) => {
127
- if (profileData.sso_session) {
128
- return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
129
- } else {
130
- return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
131
- }
132
- });
133
- };
134
- var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
135
- init_esm_shims();
136
- var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
137
- var resolveStaticCredentials = async (profile, options) => {
138
- options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
139
- const credentials = {
140
- accessKeyId: profile.aws_access_key_id,
141
- secretAccessKey: profile.aws_secret_access_key,
142
- sessionToken: profile.aws_session_token,
143
- ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
144
- ...profile.aws_account_id && { accountId: profile.aws_account_id }
145
- };
146
- return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
147
- };
148
- init_esm_shims();
149
- var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
150
- var resolveWebIdentityCredentials = async (profile, options) => import("./dist-es-ADTONJUN-RVFWNZHO.js").then(({ fromTokenFile }) => fromTokenFile({
151
- webIdentityTokenFile: profile.web_identity_token_file,
152
- roleArn: profile.role_arn,
153
- roleSessionName: profile.role_session_name,
154
- roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
155
- logger: options.logger,
156
- parentClientConfig: options.parentClientConfig
157
- })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
158
- var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
159
- const data = profiles[profileName];
160
- if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
161
- return resolveStaticCredentials(data, options);
162
- }
163
- if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
164
- return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
165
- }
166
- if (isStaticCredsProfile(data)) {
167
- return resolveStaticCredentials(data, options);
168
- }
169
- if (isWebIdentityProfile(data)) {
170
- return resolveWebIdentityCredentials(data, options);
171
- }
172
- if (isProcessProfile(data)) {
173
- return resolveProcessCredentials(options, profileName);
174
- }
175
- if (isSsoProfile(data)) {
176
- return await resolveSsoCredentials(profileName, data, options);
177
- }
178
- throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
179
- };
180
- var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
181
- const init = {
182
- ..._init,
183
- parentClientConfig: {
184
- ...callerClientConfig,
185
- ..._init.parentClientConfig
186
- }
187
- };
188
- init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
189
- const profiles = await parseKnownFiles(init);
190
- return resolveProfileData(getProfileName({
191
- profile: _init.profile ?? callerClientConfig?.profile
192
- }), profiles, init);
193
- };
194
- export {
195
- fromIni
196
- };