@spinnaker/amazon 0.14.3 → 0.14.5

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,2 @@
1
1
  export * from './LambdaDeleteStage';
2
+ export declare const AMAZON_PIPELINE_STAGES_LAMBDA_DELETE = "spinnaker.amazon.pipeline.stage.Aws.LambdaDeleteStage";
@@ -1 +1,2 @@
1
1
  export * from './config/LambdaDeploymentStage';
2
+ export declare const AMAZON_PIPELINE_STAGES_LAMBDA_DEPLOY = "spinnaker.amazon.pipeline.stage.Aws.LambdaDeploymentStage";
@@ -1 +1,2 @@
1
1
  export * from './LambdaInvokeStage';
2
+ export declare const AMAZON_PIPELINE_STAGES_LAMBDA_INVOKE = "spinnaker.amazon.pipeline.stage.Aws.LambdaInvokeStage";
@@ -1 +1,2 @@
1
1
  export * from './LambdaRouteStage';
2
+ export declare const AMAZON_PIPELINE_STAGES_LAMBDA_ROUTE = "spinnaker.amazon.pipeline.stage.Aws.LambdaTrafficRoutingStage";
@@ -1 +1,2 @@
1
1
  export * from './LambdaUpdateCodeStage';
2
+ export declare const AMAZON_PIPELINE_STAGES_LAMBDA_UPDATE = "spinnaker.amazon.pipeline.stage.Aws.LambdaUpdateCodeStage";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/amazon",
3
3
  "license": "Apache-2.0",
4
- "version": "0.14.3",
4
+ "version": "0.14.5",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "publishConfig": {
@@ -16,7 +16,7 @@
16
16
  "lib": "npm run build"
17
17
  },
18
18
  "dependencies": {
19
- "@spinnaker/core": "^0.28.0",
19
+ "@spinnaker/core": "^0.29.1",
20
20
  "@uirouter/angularjs": "1.0.26",
21
21
  "@uirouter/core": "6.0.8",
22
22
  "@uirouter/react": "1.0.7",
@@ -58,5 +58,5 @@
58
58
  "shx": "0.3.3",
59
59
  "typescript": "4.3.5"
60
60
  },
61
- "gitHead": "20d6ca89f39a5f44a802a1ccaffd669587450d76"
61
+ "gitHead": "2f7f8de7b0c43ea29ac505a9b4c0f5d9b29456f4"
62
62
  }
package/src/aws.module.ts CHANGED
@@ -26,22 +26,27 @@ import { AWS_LOAD_BALANCER_MODULE } from './loadBalancer/loadBalancer.module';
26
26
  import amazonLogo from './logo/amazon.logo.svg';
27
27
  import { AMAZON_PIPELINE_STAGES_BAKE_AWSBAKESTAGE } from './pipeline/stages/bake/awsBakeStage';
28
28
  import { AMAZON_PIPELINE_STAGES_CLONESERVERGROUP_AWSCLONESERVERGROUPSTAGE } from './pipeline/stages/cloneServerGroup/awsCloneServerGroupStage';
29
+ import { AMAZON_PIPELINE_STAGES_LAMBDA_DELETE } from './pipeline/stages/deleteLambda';
29
30
  import { CLOUD_FORMATION_CHANGE_SET_INFO } from './pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo';
30
31
  import { CLOUDFORMATION_TEMPLATE_ENTRY } from './pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component';
31
32
  import { DEPLOY_CLOUDFORMATION_STACK_STAGE } from './pipeline/stages/deployCloudFormation/deployCloudFormationStackStage';
32
33
  import { AWS_EVALUATE_CLOUD_FORMATION_CHANGE_SET_EXECUTION_SERVICE } from './pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service';
34
+ import { AMAZON_PIPELINE_STAGES_LAMBDA_DEPLOY } from './pipeline/stages/deployLambda';
33
35
  import { AMAZON_PIPELINE_STAGES_DESTROYASG_AWSDESTROYASGSTAGE } from './pipeline/stages/destroyAsg/awsDestroyAsgStage';
34
36
  import { AMAZON_PIPELINE_STAGES_DISABLEASG_AWSDISABLEASGSTAGE } from './pipeline/stages/disableAsg/awsDisableAsgStage';
35
37
  import { AMAZON_PIPELINE_STAGES_DISABLECLUSTER_AWSDISABLECLUSTERSTAGE } from './pipeline/stages/disableCluster/awsDisableClusterStage';
36
38
  import { AMAZON_PIPELINE_STAGES_ENABLEASG_AWSENABLEASGSTAGE } from './pipeline/stages/enableAsg/awsEnableAsgStage';
37
39
  import { AMAZON_PIPELINE_STAGES_FINDAMI_AWSFINDAMISTAGE } from './pipeline/stages/findAmi/awsFindAmiStage';
38
40
  import { AMAZON_PIPELINE_STAGES_FINDIMAGEFROMTAGS_AWSFINDIMAGEFROMTAGSSTAGE } from './pipeline/stages/findImageFromTags/awsFindImageFromTagsStage';
41
+ import { AMAZON_PIPELINE_STAGES_LAMBDA_INVOKE } from './pipeline/stages/invokeLambda';
39
42
  import { AMAZON_PIPELINE_STAGES_MODIFYSCALINGPROCESS_MODIFYSCALINGPROCESSSTAGE } from './pipeline/stages/modifyScalingProcess/modifyScalingProcessStage';
40
43
  import { AMAZON_PIPELINE_STAGES_RESIZEASG_AWSRESIZEASGSTAGE } from './pipeline/stages/resizeAsg/awsResizeAsgStage';
41
44
  import { AMAZON_PIPELINE_STAGES_ROLLBACKCLUSTER_AWSROLLBACKCLUSTERSTAGE } from './pipeline/stages/rollbackCluster/awsRollbackClusterStage';
45
+ import { AMAZON_PIPELINE_STAGES_LAMBDA_ROUTE } from './pipeline/stages/routeLambda';
42
46
  import { AMAZON_PIPELINE_STAGES_SCALEDOWNCLUSTER_AWSSCALEDOWNCLUSTERSTAGE } from './pipeline/stages/scaleDownCluster/awsScaleDownClusterStage';
43
47
  import { AMAZON_PIPELINE_STAGES_SHRINKCLUSTER_AWSSHRINKCLUSTERSTAGE } from './pipeline/stages/shrinkCluster/awsShrinkClusterStage';
44
48
  import { AMAZON_PIPELINE_STAGES_TAGIMAGE_AWSTAGIMAGESTAGE } from './pipeline/stages/tagImage/awsTagImageStage';
49
+ import { AMAZON_PIPELINE_STAGES_LAMBDA_UPDATE } from './pipeline/stages/updateCodeLambda';
45
50
  import { AWS_REACT_MODULE } from './reactShims/aws.react.module';
46
51
  import { AMAZON_SEARCH_SEARCHRESULTFORMATTER } from './search/searchResultFormatter';
47
52
  import { AWS_SECURITY_GROUP_MODULE } from './securityGroup/securityGroup.module';
@@ -114,6 +119,11 @@ module(AMAZON_MODULE, [
114
119
  INSTANCE_SECURITY_GROUPS_COMPONENT,
115
120
  INSTANCE_DNS_COMPONENT,
116
121
  AMAZON_INSTANCE_INFORMATION_COMPONENT,
122
+ AMAZON_PIPELINE_STAGES_LAMBDA_DELETE,
123
+ AMAZON_PIPELINE_STAGES_LAMBDA_DEPLOY,
124
+ AMAZON_PIPELINE_STAGES_LAMBDA_INVOKE,
125
+ AMAZON_PIPELINE_STAGES_LAMBDA_UPDATE,
126
+ AMAZON_PIPELINE_STAGES_LAMBDA_ROUTE,
117
127
  ]).config(() => {
118
128
  CloudProviderRegistry.registerProvider('aws', {
119
129
  name: 'Amazon',
@@ -1,11 +1,17 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import { module } from 'angular';
5
+
4
6
  import { Registry, SETTINGS } from '@spinnaker/core';
5
- import { lambdaDeleteStage } from './LambdaDeleteStage';
6
7
 
8
+ import { lambdaDeleteStage } from './LambdaDeleteStage';
7
9
  export * from './LambdaDeleteStage';
8
10
 
9
- if (SETTINGS.feature.lambdaAdditionalStages) {
10
- Registry.pipeline.registerStage(lambdaDeleteStage);
11
- }
11
+ export const AMAZON_PIPELINE_STAGES_LAMBDA_DELETE = 'spinnaker.amazon.pipeline.stage.Aws.LambdaDeleteStage';
12
+
13
+ module(AMAZON_PIPELINE_STAGES_LAMBDA_DELETE, []).config(function () {
14
+ if (SETTINGS.feature.lambdaAdditionalStages) {
15
+ Registry.pipeline.registerStage(lambdaDeleteStage);
16
+ }
17
+ });
@@ -15,7 +15,6 @@ import {
15
15
  TetheredCreatable,
16
16
  TextInput,
17
17
  } from '@spinnaker/core';
18
- import { NumberConcurrencyInput } from '@spinnaker/core/dist/presentation/forms/inputs/NumberConcurrencyInput';
19
18
 
20
19
  import { BasicSettingsForm, ExecutionRoleForm, LambdaAtEdgeForm, NetworkForm, TriggerEventsForm } from './index';
21
20
 
@@ -96,7 +95,7 @@ export function AwsLambdaFunctionStageForm(props: IFormikStageConfigInjectedProp
96
95
  help={
97
96
  <HelpField content="The total number of current executions of your Lambda function that can be instantiated at any time." />
98
97
  }
99
- input={(props) => <NumberConcurrencyInput {...props} min={0} max={3000} />}
98
+ input={(props) => <NumberInput {...props} min={0} max={3000} />}
100
99
  />
101
100
  <FormikFormField
102
101
  name="memorySize"
@@ -1,11 +1,18 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import { module } from 'angular';
5
+
4
6
  import { Registry, SETTINGS } from '@spinnaker/core';
7
+
5
8
  import { lambdaDeploymentStage } from './config/LambdaDeploymentStage';
6
9
 
7
10
  export * from './config/LambdaDeploymentStage';
8
11
 
9
- if (SETTINGS.feature.lambdaAdditionalStages) {
10
- Registry.pipeline.registerStage(lambdaDeploymentStage);
11
- }
12
+ export const AMAZON_PIPELINE_STAGES_LAMBDA_DEPLOY = 'spinnaker.amazon.pipeline.stage.Aws.LambdaDeploymentStage';
13
+
14
+ module(AMAZON_PIPELINE_STAGES_LAMBDA_DEPLOY, []).config(function () {
15
+ if (SETTINGS.feature.lambdaAdditionalStages) {
16
+ Registry.pipeline.registerStage(lambdaDeploymentStage);
17
+ }
18
+ });
@@ -19,6 +19,7 @@ export function InvokeLambdaOperation(props: IFormikStageConfigInjectedProps) {
19
19
  ArtifactTypePatterns.BITBUCKET_FILE,
20
20
  ArtifactTypePatterns.CUSTOM_OBJECT,
21
21
  ArtifactTypePatterns.EMBEDDED_BASE64,
22
+ ArtifactTypePatterns.REMOTE_BASE64,
22
23
  ArtifactTypePatterns.GCS_OBJECT,
23
24
  ArtifactTypePatterns.GITHUB_FILE,
24
25
  ArtifactTypePatterns.GITLAB_FILE,
@@ -1,11 +1,18 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import { module } from 'angular';
5
+
4
6
  import { Registry, SETTINGS } from '@spinnaker/core';
7
+
5
8
  import { lambdaInvokeStage } from './LambdaInvokeStage';
6
9
 
7
10
  export * from './LambdaInvokeStage';
8
11
 
9
- if (SETTINGS.feature.lambdaAdditionalStages) {
10
- Registry.pipeline.registerStage(lambdaInvokeStage);
11
- }
12
+ export const AMAZON_PIPELINE_STAGES_LAMBDA_INVOKE = 'spinnaker.amazon.pipeline.stage.Aws.LambdaInvokeStage';
13
+
14
+ module(AMAZON_PIPELINE_STAGES_LAMBDA_INVOKE, []).config(function () {
15
+ if (SETTINGS.feature.lambdaAdditionalStages) {
16
+ Registry.pipeline.registerStage(lambdaInvokeStage);
17
+ }
18
+ });
@@ -19,7 +19,6 @@ import {
19
19
  TextInput,
20
20
  useData,
21
21
  } from '@spinnaker/core';
22
- import { NumberConcurrencyInput } from '@spinnaker/core/dist/presentation/forms/inputs/NumberConcurrencyInput';
23
22
 
24
23
  import { TriggerEventsForm } from './TriggerEventsForm';
25
24
  import { DeploymentStrategyForm } from './components';
@@ -123,7 +122,7 @@ export function RouteLambdaFunctionStageForm(props: IFormikStageConfigInjectedPr
123
122
  values.deploymentStrategy === '$WEIGHTED' ? (
124
123
  <NumberInput {...props} min={0} max={0} />
125
124
  ) : (
126
- <NumberConcurrencyInput {...props} min={0} max={3000} />
125
+ <NumberInput {...props} min={0} max={3000} />
127
126
  )
128
127
  }
129
128
  required={false}
@@ -1,11 +1,18 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import { module } from 'angular';
5
+
4
6
  import { Registry, SETTINGS } from '@spinnaker/core';
7
+
5
8
  import { lambdaRouteStage } from './LambdaRouteStage';
6
9
 
7
10
  export * from './LambdaRouteStage';
8
11
 
9
- if (SETTINGS.feature.lambdaAdditionalStages) {
10
- Registry.pipeline.registerStage(lambdaRouteStage);
11
- }
12
+ export const AMAZON_PIPELINE_STAGES_LAMBDA_ROUTE = 'spinnaker.amazon.pipeline.stage.Aws.LambdaTrafficRoutingStage';
13
+
14
+ module(AMAZON_PIPELINE_STAGES_LAMBDA_ROUTE, []).config(function () {
15
+ if (SETTINGS.feature.lambdaAdditionalStages) {
16
+ Registry.pipeline.registerStage(lambdaRouteStage);
17
+ }
18
+ });
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ .LambdaCodeUpdateStageConfig {
5
+ }
@@ -1,11 +1,18 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ import { module } from 'angular';
5
+
4
6
  import { Registry, SETTINGS } from '@spinnaker/core';
7
+
5
8
  import { lambdaUpdateCodeStage } from './LambdaUpdateCodeStage';
6
9
 
7
10
  export * from './LambdaUpdateCodeStage';
8
11
 
9
- if (SETTINGS.feature.lambdaAdditionalStages) {
10
- Registry.pipeline.registerStage(lambdaUpdateCodeStage);
11
- }
12
+ export const AMAZON_PIPELINE_STAGES_LAMBDA_UPDATE = 'spinnaker.amazon.pipeline.stage.Aws.LambdaUpdateCodeStage';
13
+
14
+ module(AMAZON_PIPELINE_STAGES_LAMBDA_UPDATE, []).config(function () {
15
+ if (SETTINGS.feature.lambdaAdditionalStages) {
16
+ Registry.pipeline.registerStage(lambdaUpdateCodeStage);
17
+ }
18
+ });