@xube/kit-aws-auth-infrastructure 0.0.68 → 0.0.69
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.
- package/dist/api/login.js +1 -2
- package/dist/api/signup.js +1 -2
- package/package.json +8 -8
- package/src/api/login.ts +1 -1
- package/src/api/signup.ts +1 -1
package/dist/api/login.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoginAPI = void 0;
|
|
4
|
-
const kit_aws_auth_1 = require("@xube/kit-aws-auth");
|
|
5
4
|
const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway");
|
|
6
5
|
const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
7
6
|
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
@@ -25,7 +24,7 @@ class LoginAPI extends constructs_1.Construct {
|
|
|
25
24
|
"ssm:GetParameter",
|
|
26
25
|
"ssm:GetParameters",
|
|
27
26
|
],
|
|
28
|
-
resources: [
|
|
27
|
+
resources: [`*`],
|
|
29
28
|
});
|
|
30
29
|
this.loginFunction.addToRolePolicy(ssmPermission);
|
|
31
30
|
}
|
package/dist/api/signup.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SignUpAPI = void 0;
|
|
4
|
-
const kit_aws_auth_1 = require("@xube/kit-aws-auth");
|
|
5
4
|
const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway");
|
|
6
5
|
const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
7
6
|
const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
@@ -23,7 +22,7 @@ class SignUpAPI extends constructs_1.Construct {
|
|
|
23
22
|
const ssmPermission = new aws_iam_1.PolicyStatement({
|
|
24
23
|
actions: ["ssm:GetParameter", "ssm:GetParameters"],
|
|
25
24
|
resources: [
|
|
26
|
-
|
|
25
|
+
`*`,
|
|
27
26
|
],
|
|
28
27
|
});
|
|
29
28
|
this.signupFunction.addToRolePolicy(ssmPermission);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws-auth-infrastructure",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xube/kit-build": "^0.0.
|
|
20
|
+
"@xube/kit-build": "^0.0.69"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@xube/kit-aws": "^0.0.
|
|
24
|
-
"@xube/kit-aws-auth": "^0.0.
|
|
25
|
-
"@xube/kit-aws-hooks": "^0.0.
|
|
26
|
-
"@xube/kit-aws-infrastructure": "^0.0.
|
|
27
|
-
"@xube/kit-constants": "^0.0.
|
|
28
|
-
"@xube/kit-log": "^0.0.
|
|
23
|
+
"@xube/kit-aws": "^0.0.69",
|
|
24
|
+
"@xube/kit-aws-auth": "^0.0.69",
|
|
25
|
+
"@xube/kit-aws-hooks": "^0.0.69",
|
|
26
|
+
"@xube/kit-aws-infrastructure": "^0.0.69",
|
|
27
|
+
"@xube/kit-constants": "^0.0.69",
|
|
28
|
+
"@xube/kit-log": "^0.0.69",
|
|
29
29
|
"aws-cdk-lib": "^2.100.0",
|
|
30
30
|
"aws-lambda": "^1.0.7",
|
|
31
31
|
"constructs": "^10.3.0"
|
package/src/api/login.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class LoginAPI extends Construct {
|
|
|
33
33
|
"ssm:GetParameter",
|
|
34
34
|
"ssm:GetParameters",
|
|
35
35
|
],
|
|
36
|
-
resources: [
|
|
36
|
+
resources: [`*`],
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
this.loginFunction.addToRolePolicy(ssmPermission);
|
package/src/api/signup.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class SignUpAPI extends Construct {
|
|
|
31
31
|
const ssmPermission = new PolicyStatement({
|
|
32
32
|
actions: ["ssm:GetParameter", "ssm:GetParameters"],
|
|
33
33
|
resources: [
|
|
34
|
-
|
|
34
|
+
`*`,
|
|
35
35
|
],
|
|
36
36
|
});
|
|
37
37
|
|