@fy-stack/cli 0.0.138 → 0.0.140
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-app.d.ts","sourceRoot":"","sources":["../../src/commands/init-app.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAavC,wBAAsB,OAAO,CAAC,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"init-app.d.ts","sourceRoot":"","sources":["../../src/commands/init-app.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAavC,wBAAsB,OAAO,CAAC,KAAK,EAAE,YAAY,iBA+JhD"}
|
|
@@ -89,9 +89,11 @@ async function initApp(props) {
|
|
|
89
89
|
}));
|
|
90
90
|
for (const policyName of inlinePolices.PolicyNames ?? []) {
|
|
91
91
|
const policyDocument = await iamClient.send(new client_iam_1.GetUserPolicyCommand({ UserName: username, PolicyName: policyName }));
|
|
92
|
+
if (!policyDocument.PolicyDocument)
|
|
93
|
+
continue;
|
|
92
94
|
await iamClient.send(new client_iam_1.PutRolePolicyCommand({
|
|
93
95
|
PolicyName: policyName,
|
|
94
|
-
PolicyDocument: policyDocument.PolicyDocument,
|
|
96
|
+
PolicyDocument: decodeURIComponent(policyDocument.PolicyDocument),
|
|
95
97
|
RoleName: roleRes.Role.RoleName
|
|
96
98
|
}));
|
|
97
99
|
}
|
|
@@ -110,9 +112,11 @@ async function initApp(props) {
|
|
|
110
112
|
}));
|
|
111
113
|
for (const policyName of inlinePolices.PolicyNames ?? []) {
|
|
112
114
|
const policyDocument = await iamClient.send(new client_iam_1.GetUserPolicyCommand({ UserName: username, PolicyName: policyName }));
|
|
115
|
+
if (!policyDocument.PolicyDocument)
|
|
116
|
+
continue;
|
|
113
117
|
await iamClient.send(new client_iam_1.PutRolePolicyCommand({
|
|
114
118
|
PolicyName: policyName,
|
|
115
|
-
PolicyDocument: policyDocument.PolicyDocument,
|
|
119
|
+
PolicyDocument: decodeURIComponent(policyDocument.PolicyDocument),
|
|
116
120
|
RoleName: roleRes.Role.RoleName
|
|
117
121
|
}));
|
|
118
122
|
}
|