@xube/kit-aws-infrastructure 0.0.102 → 0.0.103
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.
|
@@ -23,13 +23,11 @@ import { XubeEnvironment } from "@xube/kit-aws-schema";
|
|
|
23
23
|
* Location of the cdk output when synth is completed (generally in cdk.out in the cdk directory)
|
|
24
24
|
*/
|
|
25
25
|
interface XubeBuildStepProps extends XubeEnvironment {
|
|
26
|
-
repository: string;
|
|
27
26
|
installCommands?: string[];
|
|
28
27
|
commands?: string[];
|
|
29
|
-
branchName?: string;
|
|
30
28
|
cdkOutPath?: string;
|
|
31
29
|
pipelineSource: CodePipelineSource;
|
|
32
|
-
|
|
30
|
+
buildStepName: string;
|
|
33
31
|
}
|
|
34
32
|
export declare class XubeBuildStep extends Construct {
|
|
35
33
|
synthCodeBuildStep: CodeBuildStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xube-build-step.d.ts","sourceRoot":"","sources":["../../src/pipeline/xube-build-step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAY1E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQvD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,UAAU,kBAAmB,SAAQ,eAAe;IAClD,
|
|
1
|
+
{"version":3,"file":"xube-build-step.d.ts","sourceRoot":"","sources":["../../src/pipeline/xube-build-step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAY1E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQvD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,UAAU,kBAAmB,SAAQ,eAAe;IAClD,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,kBAAkB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,aAAc,SAAQ,SAAS;IAC1C,kBAAkB,EAAE,aAAa,CAAC;gBACtB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CA6BpE"}
|
|
@@ -15,7 +15,7 @@ class XubeBuildStep extends constructs_1.Construct {
|
|
|
15
15
|
assumedBy: new aws_iam_1.ServicePrincipal("codebuild.amazonaws.com"),
|
|
16
16
|
managedPolicies: [
|
|
17
17
|
new aws_iam_1.ManagedPolicy(scope, id + "-build-synth-policy", {
|
|
18
|
-
managedPolicyName: id +
|
|
18
|
+
managedPolicyName: id + "-policy",
|
|
19
19
|
statements: [
|
|
20
20
|
new aws_iam_1.PolicyStatement({
|
|
21
21
|
actions: ["cognito-idp:*"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws-infrastructure",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.103",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,13 +17,13 @@
|
|
|
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.103",
|
|
21
21
|
"aws-cdk": "^2.159.1"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@xube/kit-aws-schema": "^0.0.
|
|
25
|
-
"@xube/kit-log": "^0.0.
|
|
26
|
-
"@xube/kit-request": "^0.0.
|
|
24
|
+
"@xube/kit-aws-schema": "^0.0.103",
|
|
25
|
+
"@xube/kit-log": "^0.0.103",
|
|
26
|
+
"@xube/kit-request": "^0.0.103",
|
|
27
27
|
"aws-cdk-lib": "^2.159.1",
|
|
28
28
|
"aws-lambda": "^1.0.7",
|
|
29
29
|
"constructs": "^10.3.0"
|
|
@@ -41,13 +41,11 @@ import {
|
|
|
41
41
|
* Location of the cdk output when synth is completed (generally in cdk.out in the cdk directory)
|
|
42
42
|
*/
|
|
43
43
|
interface XubeBuildStepProps extends XubeEnvironment {
|
|
44
|
-
repository: string;
|
|
45
44
|
installCommands?: string[];
|
|
46
45
|
commands?: string[];
|
|
47
|
-
branchName?: string;
|
|
48
46
|
cdkOutPath?: string;
|
|
49
47
|
pipelineSource: CodePipelineSource;
|
|
50
|
-
|
|
48
|
+
buildStepName: string;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export class XubeBuildStep extends Construct {
|
|
@@ -58,24 +56,19 @@ export class XubeBuildStep extends Construct {
|
|
|
58
56
|
this.synthCodeBuildStep = new CodeBuildStep(id + "synth-step", {
|
|
59
57
|
input: props.pipelineSource,
|
|
60
58
|
env: {},
|
|
61
|
-
|
|
62
59
|
role: new Role(scope, id + "-build-synth-role", {
|
|
63
60
|
assumedBy: new ServicePrincipal("codebuild.amazonaws.com"),
|
|
64
61
|
managedPolicies: [
|
|
65
|
-
new ManagedPolicy(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}),
|
|
76
|
-
],
|
|
77
|
-
}
|
|
78
|
-
),
|
|
62
|
+
new ManagedPolicy(scope, id + "-build-synth-policy", {
|
|
63
|
+
managedPolicyName: id + "-policy",
|
|
64
|
+
statements: [
|
|
65
|
+
new PolicyStatement({
|
|
66
|
+
actions: ["cognito-idp:*"],
|
|
67
|
+
effect: Effect.ALLOW,
|
|
68
|
+
resources: ["*"],
|
|
69
|
+
}),
|
|
70
|
+
],
|
|
71
|
+
}),
|
|
79
72
|
],
|
|
80
73
|
}),
|
|
81
74
|
buildEnvironment: {
|