@flit/cdk-pipeline 2.5.0 → 2.5.2
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/.jsii +45 -113
- package/dist/artifact.js +1 -1
- package/dist/code-commit-source-segment.js +2 -2
- package/dist/code-star-source-segment.js +2 -2
- package/dist/git-hub-source-segment.js +2 -2
- package/dist/pipeline-segment.d.ts +0 -6
- package/dist/pipeline-segment.js +6 -6
- package/dist/pipeline.js +1 -1
- package/dist/publish-assets-action.js +1 -1
- package/dist/s3-source-segment.js +2 -2
- package/dist/segment.js +2 -2
- package/dist/source-segment.js +1 -1
- package/dist/stack-segment.d.ts +0 -6
- package/dist/stack-segment.js +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/pipeline-segment.ts +3 -9
- package/src/stack-segment.ts +3 -9
package/package.json
CHANGED
package/src/pipeline-segment.ts
CHANGED
|
@@ -34,11 +34,6 @@ export interface PipelineSegmentProps {
|
|
|
34
34
|
* The environmental variables for the build stage.
|
|
35
35
|
*/
|
|
36
36
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
37
|
-
/**
|
|
38
|
-
* The name of the stack to apply this action to.
|
|
39
|
-
* @default The name of the given stack.
|
|
40
|
-
*/
|
|
41
|
-
readonly stackName?: string;
|
|
42
37
|
/**
|
|
43
38
|
* The artifact to hold the stack deployment output file.
|
|
44
39
|
* @default no output artifact
|
|
@@ -82,7 +77,6 @@ export interface PipelineSegmentConstructedProps {
|
|
|
82
77
|
readonly stack: Stack;
|
|
83
78
|
readonly project: ProjectProps;
|
|
84
79
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
85
|
-
readonly stackName?: string;
|
|
86
80
|
readonly input: Artifact;
|
|
87
81
|
readonly extraInputs?: Artifact[];
|
|
88
82
|
readonly output?: Artifact;
|
|
@@ -120,7 +114,7 @@ export class PipelineSegmentConstructed extends SegmentConstructed {
|
|
|
120
114
|
commands: "npm install -g aws-cdk",
|
|
121
115
|
},
|
|
122
116
|
build: {
|
|
123
|
-
commands: `npx cdk deploy ${props.
|
|
117
|
+
commands: `npx cdk deploy ${props.stack.node.id} --app ./ --method prepare-change-set --change-set-name pipeline-${props.stack.node.id}-${this.name} --require-approval never`,
|
|
124
118
|
},
|
|
125
119
|
},
|
|
126
120
|
cache: {
|
|
@@ -205,10 +199,10 @@ export class PipelineSegmentConstructed extends SegmentConstructed {
|
|
|
205
199
|
new CloudFormationExecuteChangeSetAction({
|
|
206
200
|
actionName: "ExecuteChanges",
|
|
207
201
|
runOrder: props.manualApproval ? 3 : 4,
|
|
208
|
-
stackName: props.
|
|
202
|
+
stackName: props.stack.stackName,
|
|
209
203
|
account: props.stack.account,
|
|
210
204
|
region: props.stack.region,
|
|
211
|
-
changeSetName: `pipeline-${props.
|
|
205
|
+
changeSetName: `pipeline-${props.stack.node.id}-${this.name}`,
|
|
212
206
|
}),
|
|
213
207
|
];
|
|
214
208
|
}
|
package/src/stack-segment.ts
CHANGED
|
@@ -44,11 +44,6 @@ export interface StackSegmentProps {
|
|
|
44
44
|
* The environmental variables for the build stage.
|
|
45
45
|
*/
|
|
46
46
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
47
|
-
/**
|
|
48
|
-
* The name of the stack to deploy the changes to.
|
|
49
|
-
* @default The name of the given stack.
|
|
50
|
-
*/
|
|
51
|
-
readonly stackName?: string;
|
|
52
47
|
/**
|
|
53
48
|
* The artifact to hold the output of the build if this stack includes a build.
|
|
54
49
|
*/
|
|
@@ -100,7 +95,6 @@ export interface StackSegmentConstructedProps {
|
|
|
100
95
|
readonly stack: Stack;
|
|
101
96
|
readonly project?: ProjectProps;
|
|
102
97
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
103
|
-
readonly stackName?: string;
|
|
104
98
|
readonly input: Artifact;
|
|
105
99
|
readonly extraInputs?: Artifact[];
|
|
106
100
|
readonly buildOutput?: Artifact;
|
|
@@ -197,7 +191,7 @@ export class StackSegmentConstructed extends SegmentConstructed {
|
|
|
197
191
|
commands: "npm install -g aws-cdk",
|
|
198
192
|
},
|
|
199
193
|
build: {
|
|
200
|
-
commands: `npx cdk deploy ${props.
|
|
194
|
+
commands: `npx cdk deploy ${props.stack.node.id} --app ./ --method prepare-change-set --change-set-name pipeline-${props.stack.node.id}-${this.name} --require-approval never`,
|
|
201
195
|
},
|
|
202
196
|
},
|
|
203
197
|
cache: {
|
|
@@ -274,10 +268,10 @@ export class StackSegmentConstructed extends SegmentConstructed {
|
|
|
274
268
|
: buildArtifact
|
|
275
269
|
? 3
|
|
276
270
|
: 2,
|
|
277
|
-
stackName: props.
|
|
271
|
+
stackName: props.stack.stackName,
|
|
278
272
|
account: props.stack.account,
|
|
279
273
|
region: props.stack.region,
|
|
280
|
-
changeSetName: `pipeline-${props.
|
|
274
|
+
changeSetName: `pipeline-${props.stack.node.id}-${this.name}`,
|
|
281
275
|
output: props.stackOutput,
|
|
282
276
|
outputFileName: props.outputFileName
|
|
283
277
|
? props.outputFileName
|