@spinnaker/amazon 0.0.0-2025.1-0
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/CHANGELOG.md +4365 -0
- package/LICENSE.txt +203 -0
- package/dist/amazon.logo352d4e042476837f.svg +503 -0
- package/dist/aws.module.d.ts +5 -0
- package/dist/aws.settings.d.ts +59 -0
- package/dist/aws.validators.d.ts +7 -0
- package/dist/certificates/AmazonCertificateReader.d.ts +6 -0
- package/dist/certificates/index.d.ts +1 -0
- package/dist/common/AwsModalFooter.d.ts +21 -0
- package/dist/common/common.module.d.ts +1 -0
- package/dist/common/footer.component.d.ts +1 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/deploymentStrategy/AdditionalFields.d.ts +10 -0
- package/dist/deploymentStrategy/rollingPush.strategy.d.ts +10 -0
- package/dist/domain/IAmazonBlockDeviceMapping.d.ts +15 -0
- package/dist/domain/IAmazonCertificate.d.ts +5 -0
- package/dist/domain/IAmazonFunction.d.ts +65 -0
- package/dist/domain/IAmazonFunctionSourceData.d.ts +46 -0
- package/dist/domain/IAmazonHealth.d.ts +11 -0
- package/dist/domain/IAmazonInstance.d.ts +24 -0
- package/dist/domain/IAmazonLaunchTemplate.d.ts +91 -0
- package/dist/domain/IAmazonLoadBalancer.d.ts +230 -0
- package/dist/domain/IAmazonLoadBalancerSourceData.d.ts +170 -0
- package/dist/domain/IAmazonScalingPolicy.d.ts +22 -0
- package/dist/domain/IAmazonSecurityGroup.d.ts +4 -0
- package/dist/domain/IAmazonServerGroup.d.ts +67 -0
- package/dist/domain/IKeyPair.d.ts +6 -0
- package/dist/domain/IScalingPolicy.d.ts +44 -0
- package/dist/domain/IScalingProcess.d.ts +10 -0
- package/dist/domain/ITargetTrackingPolicy.d.ts +22 -0
- package/dist/domain/index.d.ts +15 -0
- package/dist/function/CreateLambdaFunction.d.ts +25 -0
- package/dist/function/configure/ExecutionRole.d.ts +15 -0
- package/dist/function/configure/FunctionBasicInformation.d.ts +26 -0
- package/dist/function/configure/FunctionDebugAndErrorHandling.d.ts +15 -0
- package/dist/function/configure/FunctionEnvironmentVariables.d.ts +14 -0
- package/dist/function/configure/FunctionSettings.d.ts +14 -0
- package/dist/function/configure/FunctionTags.d.ts +14 -0
- package/dist/function/configure/Network.d.ts +42 -0
- package/dist/function/details/AmazonFunctionDetails.d.ts +19 -0
- package/dist/function/details/FunctionActions.d.ts +20 -0
- package/dist/function/function.module.d.ts +1 -0
- package/dist/function/function.transformer.d.ts +7 -0
- package/dist/function/index.d.ts +5 -0
- package/dist/help/amazon.help.d.ts +1 -0
- package/dist/image/image.reader.d.ts +25 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +20873 -0
- package/dist/index.js.map +1 -0
- package/dist/instance/amazon.instance.write.service.d.ts +15 -0
- package/dist/instance/awsInstanceType.service.d.ts +50 -0
- package/dist/instance/awsInstanceTypes.d.ts +10 -0
- package/dist/instance/details/AmazonInstanceInformation.d.ts +6 -0
- package/dist/instance/details/CostFactor.d.ts +6 -0
- package/dist/instance/details/InstanceDns.d.ts +16 -0
- package/dist/instance/details/InstanceInformation.d.ts +13 -0
- package/dist/instance/details/InstanceSecurityGroups.d.ts +6 -0
- package/dist/instance/details/InstanceStatus.d.ts +16 -0
- package/dist/instance/details/InstanceTags.d.ts +8 -0
- package/dist/instance/details/amazonInstanceInformation.component.d.ts +1 -0
- package/dist/instance/details/instance.details.controller.d.ts +2 -0
- package/dist/instance/details/instanceDns.component.d.ts +1 -0
- package/dist/instance/details/instanceSecurityGroups.component.d.ts +1 -0
- package/dist/instance/details/instanceStatus.component.d.ts +1 -0
- package/dist/instance/details/instanceTags.component.d.ts +1 -0
- package/dist/instance/details/utils.d.ts +3 -0
- package/dist/instance/index.d.ts +5 -0
- package/dist/keyPairs/KeyPairsReader.d.ts +4 -0
- package/dist/keyPairs/index.d.ts +1 -0
- package/dist/loadBalancer/AmazonLoadBalancerClusterContainer.d.ts +6 -0
- package/dist/loadBalancer/AmazonLoadBalancersTag.d.ts +20 -0
- package/dist/loadBalancer/OidcConfigReader.d.ts +16 -0
- package/dist/loadBalancer/TargetGroup.d.ts +12 -0
- package/dist/loadBalancer/TargetGroupDetails.d.ts +7 -0
- package/dist/loadBalancer/amazonLoadBalancerDataUtils.d.ts +6 -0
- package/dist/loadBalancer/configure/AmazonLoadBalancerChoiceModal.d.ts +18 -0
- package/dist/loadBalancer/configure/LoadBalancerTypes.d.ts +14 -0
- package/dist/loadBalancer/configure/application/ALBAdvancedSettings.d.ts +2 -0
- package/dist/loadBalancer/configure/application/ALBListeners.d.ts +59 -0
- package/dist/loadBalancer/configure/application/ConfigureOidcConfigModal.d.ts +20 -0
- package/dist/loadBalancer/configure/application/ConfigureRedirectConfigModal.d.ts +17 -0
- package/dist/loadBalancer/configure/application/CreateApplicationLoadBalancer.d.ts +35 -0
- package/dist/loadBalancer/configure/application/TargetGroups.d.ts +33 -0
- package/dist/loadBalancer/configure/classic/AdvancedSettings.d.ts +10 -0
- package/dist/loadBalancer/configure/classic/CreateClassicLoadBalancer.d.ts +33 -0
- package/dist/loadBalancer/configure/classic/HealthCheck.d.ts +11 -0
- package/dist/loadBalancer/configure/classic/Listeners.d.ts +34 -0
- package/dist/loadBalancer/configure/common/AmazonCertificateSelectField.d.ts +15 -0
- package/dist/loadBalancer/configure/common/LoadBalancerLocation.d.ts +48 -0
- package/dist/loadBalancer/configure/common/SecurityGroups.d.ts +36 -0
- package/dist/loadBalancer/configure/common/targetGroupValidators.d.ts +10 -0
- package/dist/loadBalancer/configure/network/CertificateSelectors.d.ts +3 -0
- package/dist/loadBalancer/configure/network/CreateNetworkLoadBalancer.d.ts +34 -0
- package/dist/loadBalancer/configure/network/NLBAdvancedSettings.d.ts +5 -0
- package/dist/loadBalancer/configure/network/NLBListeners.d.ts +43 -0
- package/dist/loadBalancer/configure/network/TargetGroups.d.ts +34 -0
- package/dist/loadBalancer/details/LoadBalancerActions.d.ts +19 -0
- package/dist/loadBalancer/details/loadBalancerActions.component.d.ts +1 -0
- package/dist/loadBalancer/details/loadBalancerDetails.controller.d.ts +41 -0
- package/dist/loadBalancer/details/targetGroupDetails.controller.d.ts +30 -0
- package/dist/loadBalancer/index.d.ts +9 -0
- package/dist/loadBalancer/loadBalancer.module.d.ts +1 -0
- package/dist/loadBalancer/loadBalancer.transformer.d.ts +17 -0
- package/dist/loadBalancer/targetGroup.states.d.ts +1 -0
- package/dist/pipeline/stages/bake/awsBakeStage.d.ts +2 -0
- package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +2 -0
- package/dist/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.d.ts +2 -0
- package/dist/pipeline/stages/deleteLambda/DeleteLambdaFunctionStageForm.d.ts +3 -0
- package/dist/pipeline/stages/deleteLambda/LambdaDeleteStage.d.ts +8 -0
- package/dist/pipeline/stages/deleteLambda/constants/deleteVersion.constants.d.ts +6 -0
- package/dist/pipeline/stages/deleteLambda/constants/deleteVersion.picker.d.ts +16 -0
- package/dist/pipeline/stages/deleteLambda/constants/index.d.ts +2 -0
- package/dist/pipeline/stages/deleteLambda/index.d.ts +2 -0
- package/dist/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.d.ts +8 -0
- package/dist/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.d.ts +1 -0
- package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationExecutionDetails.d.ts +7 -0
- package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.d.ts +25 -0
- package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.d.ts +1 -0
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.d.ts +10 -0
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionApproval.d.ts +13 -0
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionDetails.d.ts +7 -0
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionLabel.d.ts +12 -0
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionMarkerIcon.d.ts +6 -0
- package/dist/pipeline/stages/deployLambda/components/AwsLambdaFunctionStageForm.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/components/BasicSettingsForm.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/components/EnvironmentForm.d.ts +2 -0
- package/dist/pipeline/stages/deployLambda/components/ExecutionRoleForm.d.ts +2 -0
- package/dist/pipeline/stages/deployLambda/components/LambdaAtEdgeForm.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/components/NetworkForm.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/components/TriggerEventsForm.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/components/function.constants.d.ts +5 -0
- package/dist/pipeline/stages/deployLambda/components/index.d.ts +5 -0
- package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStage.d.ts +3 -0
- package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStageConfig.d.ts +4 -0
- package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStageExecutionDetails.d.ts +6 -0
- package/dist/pipeline/stages/deployLambda/config/UpsertDefaults.d.ts +1 -0
- package/dist/pipeline/stages/deployLambda/config/function.defaults.d.ts +2 -0
- package/dist/pipeline/stages/deployLambda/index.d.ts +2 -0
- package/dist/pipeline/stages/destroyAsg/awsDestroyAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/disableAsg/awsDisableAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/disableCluster/awsDisableClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/enableAsg/awsEnableAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/findAmi/awsFindAmiStage.d.ts +2 -0
- package/dist/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.d.ts +2 -0
- package/dist/pipeline/stages/invokeLambda/InvokeLambdaFunctionStageForm.d.ts +3 -0
- package/dist/pipeline/stages/invokeLambda/LambdaInvokeStage.d.ts +8 -0
- package/dist/pipeline/stages/invokeLambda/components/InvokeLambdaOperation.d.ts +3 -0
- package/dist/pipeline/stages/invokeLambda/components/index.d.ts +1 -0
- package/dist/pipeline/stages/invokeLambda/index.d.ts +2 -0
- package/dist/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.d.ts +2 -0
- package/dist/pipeline/stages/resizeAsg/awsResizeAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/rollbackCluster/awsRollbackClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/routeLambda/LambdaRouteStage.d.ts +8 -0
- package/dist/pipeline/stages/routeLambda/RouteLambdaFunctionStageForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/TriggerEventsForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/BlueGreenDeploymentForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/HealthCheckStrategy.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/InvocationHealthCheck.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/health.constants.d.ts +5 -0
- package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/index.d.ts +1 -0
- package/dist/pipeline/stages/routeLambda/components/DeploymentStrategyForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/RenderStrategy.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/SimpleDeploymentForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/VersionPicker.d.ts +14 -0
- package/dist/pipeline/stages/routeLambda/components/WeightedDeploymentForm.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/components/index.d.ts +1 -0
- package/dist/pipeline/stages/routeLambda/constants/index.d.ts +3 -0
- package/dist/pipeline/stages/routeLambda/constants/strategy.constants.d.ts +6 -0
- package/dist/pipeline/stages/routeLambda/constants/strategy.picker.d.ts +16 -0
- package/dist/pipeline/stages/routeLambda/constants/versions.constants.d.ts +6 -0
- package/dist/pipeline/stages/routeLambda/index.d.ts +2 -0
- package/dist/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/shrinkCluster/awsShrinkClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/tagImage/awsTagImageStage.d.ts +2 -0
- package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.d.ts +3 -0
- package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageConfig.d.ts +5 -0
- package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageExecutionDetails.d.ts +6 -0
- package/dist/pipeline/stages/updateCodeLambda/components/UpdateCodeStageForm.d.ts +3 -0
- package/dist/pipeline/stages/updateCodeLambda/components/index.d.ts +1 -0
- package/dist/pipeline/stages/updateCodeLambda/index.d.ts +2 -0
- package/dist/reactShims/aws.react.injector.d.ts +18 -0
- package/dist/reactShims/aws.react.module.d.ts +1 -0
- package/dist/reactShims/index.d.ts +1 -0
- package/dist/search/searchResultFormatter.d.ts +2 -0
- package/dist/securityGroup/clone/cloneSecurityGroup.controller.d.ts +2 -0
- package/dist/securityGroup/configure/CreateSecurityGroupCtrl.d.ts +2 -0
- package/dist/securityGroup/configure/EditSecurityGroupCtrl.d.ts +2 -0
- package/dist/securityGroup/configure/configSecurityGroup.mixin.controller.d.ts +2 -0
- package/dist/securityGroup/configure/ingressRuleGroupSelector.component.d.ts +1 -0
- package/dist/securityGroup/configure/securityGroupDetailsCustom.component.d.ts +1 -0
- package/dist/securityGroup/configure/securityGroupDetailsCustom.d.ts +10 -0
- package/dist/securityGroup/details/IPRangeRules.d.ts +17 -0
- package/dist/securityGroup/details/index.d.ts +1 -0
- package/dist/securityGroup/details/securityGroupDetail.controller.d.ts +2 -0
- package/dist/securityGroup/details/securityGroupIpRangeRules.component.d.ts +1 -0
- package/dist/securityGroup/index.d.ts +1 -0
- package/dist/securityGroup/securityGroup.module.d.ts +1 -0
- package/dist/securityGroup/securityGroup.reader.d.ts +6 -0
- package/dist/securityGroup/securityGroup.transformer.d.ts +2 -0
- package/dist/serverGroup/AvailabilityZoneSelector.d.ts +21 -0
- package/dist/serverGroup/configure/AmazonImageSelectInput.d.ts +44 -0
- package/dist/serverGroup/configure/index.d.ts +5 -0
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +17 -0
- package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +126 -0
- package/dist/serverGroup/configure/wizard/AmazonCloneServerGroupModal.d.ts +31 -0
- package/dist/serverGroup/configure/wizard/ServerGroupTemplateSelection.d.ts +15 -0
- package/dist/serverGroup/configure/wizard/capacity/CapacitySelector.d.ts +18 -0
- package/dist/serverGroup/configure/wizard/capacity/MinMaxDesired.d.ts +11 -0
- package/dist/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.d.ts +8 -0
- package/dist/serverGroup/configure/wizard/instanceType/InstanceTypeSelector.d.ts +9 -0
- package/dist/serverGroup/configure/wizard/instanceType/InstanceTypeWarning.d.ts +6 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/AdvancedModeSelector.d.ts +14 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/AmazonInstanceTypeInfoRenderer.d.ts +5 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceProfileSelector.d.ts +9 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeRow.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeSelect.d.ts +7 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTable.d.ts +18 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableBody.d.ts +14 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableParts.d.ts +17 -0
- package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.d.ts +8 -0
- package/dist/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.d.ts +9 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.d.ts +32 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupCapacity.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupInstanceType.d.ts +22 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.d.ts +29 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupSecurityGroups.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupZones.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettings.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.d.ts +12 -0
- package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsInner.d.ts +11 -0
- package/dist/serverGroup/configure/wizard/pages/index.d.ts +8 -0
- package/dist/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.d.ts +22 -0
- package/dist/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.d.ts +11 -0
- package/dist/serverGroup/details/AmazonServerGroupActions.d.ts +23 -0
- package/dist/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.d.ts +2 -0
- package/dist/serverGroup/details/amazonServerGroupDetailsGetter.d.ts +4 -0
- package/dist/serverGroup/details/resize/AmazonResizeServerGroupModal.d.ts +47 -0
- package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +2 -0
- package/dist/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.d.ts +21 -0
- package/dist/serverGroup/details/scalingPolicy/ScalingPolicySummary.d.ts +9 -0
- package/dist/serverGroup/details/scalingPolicy/ScalingPolicyWriter.d.ts +55 -0
- package/dist/serverGroup/details/scalingPolicy/StepPolicySummary.d.ts +10 -0
- package/dist/serverGroup/details/scalingPolicy/chart/DateLineChart.d.ts +15 -0
- package/dist/serverGroup/details/scalingPolicy/chart/MetricAlarmChart.d.ts +11 -0
- package/dist/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.d.ts +1 -0
- package/dist/serverGroup/details/scalingPolicy/index.d.ts +12 -0
- package/dist/serverGroup/details/scalingPolicy/popover/AlarmSummary.d.ts +12 -0
- package/dist/serverGroup/details/scalingPolicy/popover/StepPolicyPopoverContent.d.ts +7 -0
- package/dist/serverGroup/details/scalingPolicy/scalingPolicy.module.d.ts +1 -0
- package/dist/serverGroup/details/scalingPolicy/scalingPolicySummary.component.d.ts +1 -0
- package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.d.ts +17 -0
- package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.d.ts +10 -0
- package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingChart.d.ts +9 -0
- package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.d.ts +10 -0
- package/dist/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.d.ts +9 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/PolicyTypeSelectionModal.d.ts +7 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.d.ts +11 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/ScalingPolicyCommandBuilderService.d.ts +11 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.d.ts +9 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.d.ts +16 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.d.ts +12 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.d.ts +15 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/alarm/namespaces.d.ts +1 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/index.d.ts +7 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.d.ts +13 -0
- package/dist/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.d.ts +18 -0
- package/dist/serverGroup/details/scalingProcesses/AutoScalingProcessService.d.ts +6 -0
- package/dist/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.d.ts +2 -0
- package/dist/serverGroup/details/scheduledAction/ScheduledAction.d.ts +8 -0
- package/dist/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.d.ts +2 -0
- package/dist/serverGroup/details/sections/AdvancedSettingsDetailsSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/AmazonCapacityDetailsSection.d.ts +5 -0
- package/dist/serverGroup/details/sections/AmazonInfoDetailsSection.d.ts +12 -0
- package/dist/serverGroup/details/sections/HealthDetailsSection.d.ts +5 -0
- package/dist/serverGroup/details/sections/IAmazonServerGroupDetailsSectionProps.d.ts +5 -0
- package/dist/serverGroup/details/sections/InstancesDistributionDetailsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/LaunchConfigDetailsSection.d.ts +11 -0
- package/dist/serverGroup/details/sections/LaunchTemplateDetailsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/LogsDetailsSection.d.ts +5 -0
- package/dist/serverGroup/details/sections/MultipleInstanceTypesSubSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/PackageDetailsSection.d.ts +12 -0
- package/dist/serverGroup/details/sections/ScalingPoliciesDetailsSection.d.ts +8 -0
- package/dist/serverGroup/details/sections/ScalingProcessesDetailsSection.d.ts +15 -0
- package/dist/serverGroup/details/sections/ScheduledActionsDetailsSection.d.ts +12 -0
- package/dist/serverGroup/details/sections/SecurityGroupsDetailsSection.d.ts +14 -0
- package/dist/serverGroup/details/sections/TagsDetailsSection.d.ts +5 -0
- package/dist/serverGroup/details/sections/index.d.ts +15 -0
- package/dist/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.d.ts +2 -0
- package/dist/serverGroup/details/serverGroupDetails.module.d.ts +1 -0
- package/dist/serverGroup/details/utils.d.ts +1 -0
- package/dist/serverGroup/index.d.ts +5 -0
- package/dist/serverGroup/serverGroup.transformer.d.ts +14 -0
- package/dist/subnet/SubnetSelectField.d.ts +23 -0
- package/dist/subnet/SubnetSelectInput.d.ts +18 -0
- package/dist/subnet/index.d.ts +2 -0
- package/dist/subnet/subnet.renderer.d.ts +5 -0
- package/dist/validation/ApplicationNameValidator.d.ts +1 -0
- package/dist/vpc/VpcReader.d.ts +7 -0
- package/dist/vpc/VpcTag.d.ts +5 -0
- package/dist/vpc/index.d.ts +1 -0
- package/dist/vpc/vpc.module.d.ts +1 -0
- package/package.json +63 -0
- package/src/applicationProviderFields/awsFields.html +13 -0
- package/src/aws.module.ts +211 -0
- package/src/aws.settings.ts +71 -0
- package/src/aws.validators.ts +31 -0
- package/src/certificates/AmazonCertificateReader.ts +24 -0
- package/src/certificates/index.ts +1 -0
- package/src/common/AwsModalFooter.tsx +70 -0
- package/src/common/common.module.ts +6 -0
- package/src/common/footer.component.ts +29 -0
- package/src/common/index.ts +1 -0
- package/src/deploymentStrategy/AdditionalFields.tsx +110 -0
- package/src/deploymentStrategy/rollingPush.strategy.ts +43 -0
- package/src/domain/IAmazonBlockDeviceMapping.ts +16 -0
- package/src/domain/IAmazonCertificate.ts +6 -0
- package/src/domain/IAmazonFunction.ts +64 -0
- package/src/domain/IAmazonFunctionSourceData.ts +45 -0
- package/src/domain/IAmazonHealth.ts +15 -0
- package/src/domain/IAmazonInstance.ts +25 -0
- package/src/domain/IAmazonLaunchTemplate.ts +104 -0
- package/src/domain/IAmazonLoadBalancer.ts +277 -0
- package/src/domain/IAmazonLoadBalancerSourceData.ts +188 -0
- package/src/domain/IAmazonScalingPolicy.ts +26 -0
- package/src/domain/IAmazonSecurityGroup.ts +4 -0
- package/src/domain/IAmazonServerGroup.ts +74 -0
- package/src/domain/IKeyPair.ts +6 -0
- package/src/domain/IScalingPolicy.ts +85 -0
- package/src/domain/IScalingProcess.ts +11 -0
- package/src/domain/ITargetTrackingPolicy.ts +31 -0
- package/src/domain/index.ts +15 -0
- package/src/function/CreateLambdaFunction.tsx +228 -0
- package/src/function/configure/ExecutionRole.tsx +45 -0
- package/src/function/configure/FunctionBasicInformation.tsx +207 -0
- package/src/function/configure/FunctionDebugAndErrorHandling.tsx +49 -0
- package/src/function/configure/FunctionEnvironmentVariables.tsx +42 -0
- package/src/function/configure/FunctionSettings.tsx +43 -0
- package/src/function/configure/FunctionTags.tsx +35 -0
- package/src/function/configure/Network.tsx +260 -0
- package/src/function/details/AmazonFunctionDetails.tsx +198 -0
- package/src/function/details/FunctionActions.spec.tsx +55 -0
- package/src/function/details/FunctionActions.tsx +132 -0
- package/src/function/function.module.ts +5 -0
- package/src/function/function.transformer.ts +71 -0
- package/src/function/index.ts +5 -0
- package/src/help/amazon.help.ts +228 -0
- package/src/image/image.reader.spec.ts +75 -0
- package/src/image/image.reader.ts +44 -0
- package/src/image/index.ts +1 -0
- package/src/index.ts +15 -0
- package/src/instance/amazon.instance.write.service.ts +85 -0
- package/src/instance/awsInstanceType.service.spec.js +380 -0
- package/src/instance/awsInstanceType.service.ts +253 -0
- package/src/instance/awsInstanceTypes.ts +311 -0
- package/src/instance/details/AmazonInstanceInformation.tsx +35 -0
- package/src/instance/details/CostFactor.tsx +29 -0
- package/src/instance/details/InstanceDns.tsx +73 -0
- package/src/instance/details/InstanceInformation.spec.tsx +71 -0
- package/src/instance/details/InstanceInformation.tsx +66 -0
- package/src/instance/details/InstanceSecurityGroups.tsx +45 -0
- package/src/instance/details/InstanceStatus.tsx +92 -0
- package/src/instance/details/InstanceTags.tsx +21 -0
- package/src/instance/details/amazonInstanceInformation.component.ts +13 -0
- package/src/instance/details/instance.details.controller.js +586 -0
- package/src/instance/details/instance.details.controller.spec.js +133 -0
- package/src/instance/details/instanceDetails.html +65 -0
- package/src/instance/details/instanceDns.component.ts +21 -0
- package/src/instance/details/instanceSecurityGroups.component.ts +13 -0
- package/src/instance/details/instanceStatus.component.ts +19 -0
- package/src/instance/details/instanceTags.component.ts +13 -0
- package/src/instance/details/utils.ts +34 -0
- package/src/instance/index.ts +5 -0
- package/src/keyPairs/KeyPairsReader.ts +11 -0
- package/src/keyPairs/index.ts +1 -0
- package/src/loadBalancer/AmazonLoadBalancerClusterContainer.tsx +53 -0
- package/src/loadBalancer/AmazonLoadBalancersTag.tsx +231 -0
- package/src/loadBalancer/OidcConfigReader.ts +21 -0
- package/src/loadBalancer/TargetGroup.tsx +63 -0
- package/src/loadBalancer/TargetGroupDetails.tsx +13 -0
- package/src/loadBalancer/amazonLoadBalancerDataUtils.ts +64 -0
- package/src/loadBalancer/configure/AmazonLoadBalancerChoiceModal.tsx +155 -0
- package/src/loadBalancer/configure/LoadBalancerTypes.ts +42 -0
- package/src/loadBalancer/configure/application/ALBAdvancedSettings.tsx +28 -0
- package/src/loadBalancer/configure/application/ALBListeners.tsx +1023 -0
- package/src/loadBalancer/configure/application/ConfigureConfigModal.css +3 -0
- package/src/loadBalancer/configure/application/ConfigureOidcConfigModal.tsx +140 -0
- package/src/loadBalancer/configure/application/ConfigureRedirectConfigModal.tsx +146 -0
- package/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx +337 -0
- package/src/loadBalancer/configure/application/TargetGroups.tsx +548 -0
- package/src/loadBalancer/configure/classic/AdvancedSettings.css +3 -0
- package/src/loadBalancer/configure/classic/AdvancedSettings.tsx +69 -0
- package/src/loadBalancer/configure/classic/CreateClassicLoadBalancer.tsx +282 -0
- package/src/loadBalancer/configure/classic/HealthCheck.tsx +69 -0
- package/src/loadBalancer/configure/classic/Listeners.less +21 -0
- package/src/loadBalancer/configure/classic/Listeners.tsx +273 -0
- package/src/loadBalancer/configure/common/AmazonCertificateSelectField.tsx +48 -0
- package/src/loadBalancer/configure/common/LoadBalancerLocation.tsx +417 -0
- package/src/loadBalancer/configure/common/SecurityGroups.tsx +223 -0
- package/src/loadBalancer/configure/common/configure.less +131 -0
- package/src/loadBalancer/configure/common/targetGroupValidators.spec.ts +130 -0
- package/src/loadBalancer/configure/common/targetGroupValidators.ts +41 -0
- package/src/loadBalancer/configure/network/CertificateSelectors.tsx +73 -0
- package/src/loadBalancer/configure/network/CreateNetworkLoadBalancer.tsx +303 -0
- package/src/loadBalancer/configure/network/NLBAdvancedSettings.tsx +34 -0
- package/src/loadBalancer/configure/network/NLBListeners.tsx +298 -0
- package/src/loadBalancer/configure/network/TargetGroups.tsx +447 -0
- package/src/loadBalancer/details/LoadBalancerActions.tsx +166 -0
- package/src/loadBalancer/details/loadBalancerActions.component.ts +16 -0
- package/src/loadBalancer/details/loadBalancerDetails.controller.spec.ts +76 -0
- package/src/loadBalancer/details/loadBalancerDetails.controller.ts +240 -0
- package/src/loadBalancer/details/loadBalancerDetails.html +266 -0
- package/src/loadBalancer/details/targetGroupDetails.controller.ts +95 -0
- package/src/loadBalancer/details/targetGroupDetails.html +138 -0
- package/src/loadBalancer/index.ts +9 -0
- package/src/loadBalancer/loadBalancer.module.ts +15 -0
- package/src/loadBalancer/loadBalancer.transformer.ts +638 -0
- package/src/loadBalancer/targetGroup.less +46 -0
- package/src/loadBalancer/targetGroup.states.ts +55 -0
- package/src/logo/amazon.logo.svg +503 -0
- package/src/logo/aws.icon.svg +10 -0
- package/src/logo/aws.logo.less +5 -0
- package/src/pipeline/stages/bake/awsBakeStage.js +219 -0
- package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +43 -0
- package/src/pipeline/stages/bake/bakeExecutionDetails.html +65 -0
- package/src/pipeline/stages/bake/bakeStage.html +205 -0
- package/src/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.js +143 -0
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStage.html +143 -0
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStepLabel.html +1 -0
- package/src/pipeline/stages/deleteLambda/DeleteLambdaFunctionStageForm.tsx +143 -0
- package/src/pipeline/stages/deleteLambda/LambdaDeleteStage.tsx +86 -0
- package/src/pipeline/stages/deleteLambda/constants/deleteVersion.constants.ts +37 -0
- package/src/pipeline/stages/deleteLambda/constants/deleteVersion.picker.tsx +47 -0
- package/src/pipeline/stages/deleteLambda/constants/index.ts +5 -0
- package/src/pipeline/stages/deleteLambda/index.ts +17 -0
- package/src/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.tsx +80 -0
- package/src/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.ts +46 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationExecutionDetails.tsx +23 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.ts +84 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.html +84 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.ts +37 -0
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.ts +33 -0
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionApproval.tsx +80 -0
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionDetails.tsx +56 -0
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionLabel.tsx +53 -0
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionMarkerIcon.tsx +20 -0
- package/src/pipeline/stages/deployLambda/components/AwsLambdaFunctionStageForm.tsx +138 -0
- package/src/pipeline/stages/deployLambda/components/BasicSettingsForm.tsx +176 -0
- package/src/pipeline/stages/deployLambda/components/EnvironmentForm.tsx +24 -0
- package/src/pipeline/stages/deployLambda/components/ExecutionRoleForm.tsx +15 -0
- package/src/pipeline/stages/deployLambda/components/LambdaAtEdgeForm.tsx +28 -0
- package/src/pipeline/stages/deployLambda/components/NetworkForm.tsx +123 -0
- package/src/pipeline/stages/deployLambda/components/TriggerEventsForm.tsx +49 -0
- package/src/pipeline/stages/deployLambda/components/function.constants.ts +32 -0
- package/src/pipeline/stages/deployLambda/components/index.ts +8 -0
- package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStage.tsx +20 -0
- package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStageConfig.tsx +64 -0
- package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStageExecutionDetails.tsx +31 -0
- package/src/pipeline/stages/deployLambda/config/UpsertDefaults.tsx +21 -0
- package/src/pipeline/stages/deployLambda/config/function.defaults.ts +39 -0
- package/src/pipeline/stages/deployLambda/index.ts +18 -0
- package/src/pipeline/stages/destroyAsg/awsDestroyAsgStage.js +66 -0
- package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +9 -0
- package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +1 -0
- package/src/pipeline/stages/disableAsg/awsDisableAsgStage.js +69 -0
- package/src/pipeline/stages/disableAsg/disableAsgStage.html +11 -0
- package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +1 -0
- package/src/pipeline/stages/disableCluster/awsDisableClusterStage.js +84 -0
- package/src/pipeline/stages/disableCluster/disableClusterStage.html +26 -0
- package/src/pipeline/stages/enableAsg/awsEnableAsgStage.js +73 -0
- package/src/pipeline/stages/enableAsg/enableAsgStage.html +11 -0
- package/src/pipeline/stages/enableAsg/enableAsgStepLabel.html +1 -0
- package/src/pipeline/stages/findAmi/awsFindAmiStage.js +79 -0
- package/src/pipeline/stages/findAmi/findAmiStage.html +24 -0
- package/src/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.js +36 -0
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +44 -0
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +11 -0
- package/src/pipeline/stages/invokeLambda/InvokeLambdaFunctionStageForm.tsx +106 -0
- package/src/pipeline/stages/invokeLambda/LambdaInvokeStage.tsx +125 -0
- package/src/pipeline/stages/invokeLambda/components/InvokeLambdaOperation.tsx +78 -0
- package/src/pipeline/stages/invokeLambda/components/index.ts +4 -0
- package/src/pipeline/stages/invokeLambda/index.ts +18 -0
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessExecutionDetails.html +36 -0
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.html +24 -0
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.js +98 -0
- package/src/pipeline/stages/resizeAsg/awsResizeAsgStage.js +127 -0
- package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +90 -0
- package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +4 -0
- package/src/pipeline/stages/rollbackCluster/awsRollbackClusterStage.js +66 -0
- package/src/pipeline/stages/rollbackCluster/rollbackClusterStage.html +43 -0
- package/src/pipeline/stages/routeLambda/LambdaRouteStage.tsx +98 -0
- package/src/pipeline/stages/routeLambda/RouteLambdaFunctionStageForm.tsx +150 -0
- package/src/pipeline/stages/routeLambda/TriggerEventsForm.tsx +51 -0
- package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/BlueGreenDeploymentForm.tsx +27 -0
- package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/HealthCheckStrategy.tsx +21 -0
- package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/InvocationHealthCheck.tsx +93 -0
- package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/health.constants.ts +14 -0
- package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/index.ts +4 -0
- package/src/pipeline/stages/routeLambda/components/DeploymentStrategyForm.tsx +18 -0
- package/src/pipeline/stages/routeLambda/components/RenderStrategy.tsx +23 -0
- package/src/pipeline/stages/routeLambda/components/SimpleDeploymentForm.tsx +67 -0
- package/src/pipeline/stages/routeLambda/components/VersionPicker.tsx +43 -0
- package/src/pipeline/stages/routeLambda/components/WeightedDeploymentForm.tsx +107 -0
- package/src/pipeline/stages/routeLambda/components/index.ts +4 -0
- package/src/pipeline/stages/routeLambda/constants/index.ts +6 -0
- package/src/pipeline/stages/routeLambda/constants/strategy.constants.tsx +26 -0
- package/src/pipeline/stages/routeLambda/constants/strategy.picker.tsx +47 -0
- package/src/pipeline/stages/routeLambda/constants/versions.constants.ts +31 -0
- package/src/pipeline/stages/routeLambda/index.ts +18 -0
- package/src/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.js +78 -0
- package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +35 -0
- package/src/pipeline/stages/shrinkCluster/awsShrinkClusterStage.js +73 -0
- package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +34 -0
- package/src/pipeline/stages/tagImage/awsTagImageStage.js +34 -0
- package/src/pipeline/stages/tagImage/tagImageExecutionDetails.html +38 -0
- package/src/pipeline/stages/tagImage/tagImageStage.html +10 -0
- package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.less +5 -0
- package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.tsx +20 -0
- package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageConfig.tsx +41 -0
- package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageExecutionDetails.tsx +31 -0
- package/src/pipeline/stages/updateCodeLambda/components/UpdateCodeStageForm.tsx +122 -0
- package/src/pipeline/stages/updateCodeLambda/components/index.ts +4 -0
- package/src/pipeline/stages/updateCodeLambda/index.ts +18 -0
- package/src/reactShims/aws.react.injector.ts +25 -0
- package/src/reactShims/aws.react.module.ts +12 -0
- package/src/reactShims/index.ts +1 -0
- package/src/search/searchResultFormatter.ts +19 -0
- package/src/securityGroup/clone/cloneSecurityGroup.controller.js +106 -0
- package/src/securityGroup/clone/cloneSecurityGroup.html +19 -0
- package/src/securityGroup/configure/CreateSecurityGroup.controller.spec.js +307 -0
- package/src/securityGroup/configure/CreateSecurityGroupCtrl.js +47 -0
- package/src/securityGroup/configure/EditSecurityGroupCtrl.js +115 -0
- package/src/securityGroup/configure/configSecurityGroup.mixin.controller.js +366 -0
- package/src/securityGroup/configure/createSecurityGroup.html +19 -0
- package/src/securityGroup/configure/createSecurityGroupIngress.html +100 -0
- package/src/securityGroup/configure/createSecurityGroupProperties.html +123 -0
- package/src/securityGroup/configure/editSecurityGroup.html +20 -0
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.html +77 -0
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.less +6 -0
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.ts +190 -0
- package/src/securityGroup/configure/securityGroupDetailsCustom.component.ts +16 -0
- package/src/securityGroup/configure/securityGroupDetailsCustom.tsx +16 -0
- package/src/securityGroup/details/IPRangeRules.tsx +56 -0
- package/src/securityGroup/details/index.ts +1 -0
- package/src/securityGroup/details/securityGroupDetail.controller.js +249 -0
- package/src/securityGroup/details/securityGroupDetail.html +114 -0
- package/src/securityGroup/details/securityGroupIpRangeRules.component.ts +12 -0
- package/src/securityGroup/index.ts +1 -0
- package/src/securityGroup/securityGroup.module.ts +26 -0
- package/src/securityGroup/securityGroup.reader.ts +24 -0
- package/src/securityGroup/securityGroup.transformer.js +48 -0
- package/src/serverGroup/AvailabilityZoneSelector.tsx +107 -0
- package/src/serverGroup/configure/AccountServiceFixtures.js +45 -0
- package/src/serverGroup/configure/AmazonImageSelectInput.spec.tsx +101 -0
- package/src/serverGroup/configure/AmazonImageSelectInput.tsx +412 -0
- package/src/serverGroup/configure/index.ts +5 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.aws.service.spec.js +430 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +528 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.spec.js +284 -0
- package/src/serverGroup/configure/serverGroupConfiguration.service.spec.ts +478 -0
- package/src/serverGroup/configure/serverGroupConfiguration.service.ts +747 -0
- package/src/serverGroup/configure/wizard/AmazonCloneServerGroupModal.tsx +243 -0
- package/src/serverGroup/configure/wizard/ServerGroupTemplateSelection.tsx +60 -0
- package/src/serverGroup/configure/wizard/capacity/CapacitySelector.tsx +181 -0
- package/src/serverGroup/configure/wizard/capacity/MinMaxDesired.tsx +60 -0
- package/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx +62 -0
- package/src/serverGroup/configure/wizard/instanceType/InstanceTypeSelector.tsx +167 -0
- package/src/serverGroup/configure/wizard/instanceType/InstanceTypeWarning.tsx +44 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/AdvancedModeSelector.tsx +102 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/AmazonInstanceTypeInfoRenderer.tsx +59 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceProfileSelector.tsx +36 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeRow.tsx +157 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeSelect.tsx +78 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTable.tsx +148 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableBody.tsx +144 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableParts.tsx +129 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.less +5 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.tsx +111 -0
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/advancedMode.less +122 -0
- package/src/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.tsx +65 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +354 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupCapacity.tsx +71 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +158 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.tsx +262 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupSecurityGroups.tsx +52 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupZones.tsx +68 -0
- package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettings.tsx +30 -0
- package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.tsx +374 -0
- package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsInner.tsx +40 -0
- package/src/serverGroup/configure/wizard/pages/index.ts +8 -0
- package/src/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.tsx +108 -0
- package/src/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.tsx +49 -0
- package/src/serverGroup/details/AmazonServerGroupActions.tsx +343 -0
- package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.js +47 -0
- package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.html +79 -0
- package/src/serverGroup/details/amazonServerGroupDetailsGetter.ts +83 -0
- package/src/serverGroup/details/resize/AmazonResizeServerGroupModal.tsx +458 -0
- package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +146 -0
- package/src/serverGroup/details/rollback/rollbackServerGroup.html +139 -0
- package/src/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.tsx +97 -0
- package/src/serverGroup/details/scalingPolicy/ScalingPolicySummary.tsx +33 -0
- package/src/serverGroup/details/scalingPolicy/ScalingPolicyWriter.ts +102 -0
- package/src/serverGroup/details/scalingPolicy/StepPolicySummary.less +10 -0
- package/src/serverGroup/details/scalingPolicy/StepPolicySummary.tsx +120 -0
- package/src/serverGroup/details/scalingPolicy/chart/DateLineChart.tsx +117 -0
- package/src/serverGroup/details/scalingPolicy/chart/MetricAlarmChart.tsx +85 -0
- package/src/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.ts +15 -0
- package/src/serverGroup/details/scalingPolicy/index.ts +12 -0
- package/src/serverGroup/details/scalingPolicy/popover/AlarmSummary.tsx +26 -0
- package/src/serverGroup/details/scalingPolicy/popover/StepPolicyPopoverContent.tsx +90 -0
- package/src/serverGroup/details/scalingPolicy/scalingPolicy.module.ts +6 -0
- package/src/serverGroup/details/scalingPolicy/scalingPolicySummary.component.ts +14 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.less +10 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.tsx +212 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.less +11 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.tsx +122 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingChart.tsx +85 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.less +11 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.tsx +117 -0
- package/src/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.tsx +77 -0
- package/src/serverGroup/details/scalingPolicy/upsert/PolicyTypeSelectionModal.tsx +77 -0
- package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.less +11 -0
- package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.tsx +105 -0
- package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyCommandBuilderService.ts +133 -0
- package/src/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.tsx +213 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.less +19 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.tsx +176 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.tsx +89 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.less +15 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.tsx +170 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/dimensionsEditor.less +18 -0
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/namespaces.ts +31 -0
- package/src/serverGroup/details/scalingPolicy/upsert/index.ts +7 -0
- package/src/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.less +9 -0
- package/src/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.tsx +70 -0
- package/src/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.less +18 -0
- package/src/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.tsx +163 -0
- package/src/serverGroup/details/scalingProcesses/AutoScalingProcessService.spec.ts +94 -0
- package/src/serverGroup/details/scalingProcesses/AutoScalingProcessService.ts +76 -0
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.js +95 -0
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.spec.js +106 -0
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.html +30 -0
- package/src/serverGroup/details/scheduledAction/ScheduledAction.tsx +25 -0
- package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.js +70 -0
- package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.html +89 -0
- package/src/serverGroup/details/sections/AdvancedSettingsDetailsSection.tsx +61 -0
- package/src/serverGroup/details/sections/AmazonCapacityDetailsSection.tsx +39 -0
- package/src/serverGroup/details/sections/AmazonInfoDetailsSection.tsx +89 -0
- package/src/serverGroup/details/sections/HealthDetailsSection.tsx +25 -0
- package/src/serverGroup/details/sections/IAmazonServerGroupDetailsSectionProps.ts +6 -0
- package/src/serverGroup/details/sections/InstancesDistributionDetailsSection.spec.tsx +88 -0
- package/src/serverGroup/details/sections/InstancesDistributionDetailsSection.tsx +50 -0
- package/src/serverGroup/details/sections/LaunchConfigDetailsSection.tsx +93 -0
- package/src/serverGroup/details/sections/LaunchTemplateDetailsSection.spec.tsx +255 -0
- package/src/serverGroup/details/sections/LaunchTemplateDetailsSection.tsx +61 -0
- package/src/serverGroup/details/sections/LogsDetailsSection.tsx +19 -0
- package/src/serverGroup/details/sections/MultipleInstanceTypesSubSection.tsx +44 -0
- package/src/serverGroup/details/sections/PackageDetailsSection.tsx +78 -0
- package/src/serverGroup/details/sections/ScalingPoliciesDetailsSection.tsx +65 -0
- package/src/serverGroup/details/sections/ScalingProcessesDetailsSection.tsx +113 -0
- package/src/serverGroup/details/sections/ScheduledActionsDetailsSection.tsx +92 -0
- package/src/serverGroup/details/sections/SecurityGroupsDetailsSection.tsx +119 -0
- package/src/serverGroup/details/sections/TagsDetailsSection.tsx +26 -0
- package/src/serverGroup/details/sections/index.ts +15 -0
- package/src/serverGroup/details/sections/multipleInstanceTypesSubSection.less +50 -0
- package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.js +95 -0
- package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.html +40 -0
- package/src/serverGroup/details/serverGroupDetails.module.ts +18 -0
- package/src/serverGroup/details/utils.spec.ts +23 -0
- package/src/serverGroup/details/utils.ts +13 -0
- package/src/serverGroup/index.ts +5 -0
- package/src/serverGroup/serverGroup.transformer.spec.ts +185 -0
- package/src/serverGroup/serverGroup.transformer.ts +160 -0
- package/src/subnet/SubnetSelectField.tsx +84 -0
- package/src/subnet/SubnetSelectInput.spec.tsx +91 -0
- package/src/subnet/SubnetSelectInput.tsx +111 -0
- package/src/subnet/index.ts +2 -0
- package/src/subnet/subnet.renderer.ts +12 -0
- package/src/validation/ApplicationNameValidator.ts +84 -0
- package/src/vpc/VpcReader.spec.ts +45 -0
- package/src/vpc/VpcReader.ts +36 -0
- package/src/vpc/VpcTag.spec.tsx +37 -0
- package/src/vpc/VpcTag.tsx +24 -0
- package/src/vpc/index.ts +1 -0
- package/src/vpc/vpc.module.ts +9 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<span class="form-control-static" ng-if="$ctrl.rule.existing">
|
|
2
|
+
<account-tag
|
|
3
|
+
account="$ctrl.rule.accountName"
|
|
4
|
+
ng-if="$ctrl.rule.accountName !== $ctrl.securityGroup.accountName"
|
|
5
|
+
></account-tag>
|
|
6
|
+
{{ $ctrl.rule.name || $ctrl.rule.id }}
|
|
7
|
+
</span>
|
|
8
|
+
|
|
9
|
+
<div ng-if="$ctrl.rule.crossAccountEnabled && $ctrl.securityGroup.regions.length === 1" class="cross-account-select">
|
|
10
|
+
<div class="row">
|
|
11
|
+
<div class="col-md-3"><span class="small">Account</span></div>
|
|
12
|
+
<div class="col-md-9">
|
|
13
|
+
<account-select-field
|
|
14
|
+
component="$ctrl.rule"
|
|
15
|
+
field="accountName"
|
|
16
|
+
accounts="$ctrl.crossAccountAccounts"
|
|
17
|
+
provider="'aws'"
|
|
18
|
+
on-change="$ctrl.setAvailableSecurityGroups()"
|
|
19
|
+
></account-select-field>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="row" ng-if="$ctrl.securityGroup.vpcId">
|
|
23
|
+
<div class="col-md-3"><span class="small">VPC</span></div>
|
|
24
|
+
<div class="col-md-9">
|
|
25
|
+
<select class="form-control input-sm" ng-model="$ctrl.rule.vpcId" ng-change="$ctrl.setAvailableSecurityGroups()">
|
|
26
|
+
<option
|
|
27
|
+
ng-repeat="vpc in $ctrl.regionalVpcs[$ctrl.rule.accountName]"
|
|
28
|
+
value="{{ vpc.id }}"
|
|
29
|
+
ng-selected="$ctrl.rule.vpcId === vpc.id"
|
|
30
|
+
>
|
|
31
|
+
{{ vpc.label }}
|
|
32
|
+
</option>
|
|
33
|
+
</select>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col-md-3">
|
|
40
|
+
<span class="small" ng-if="$ctrl.rule.crossAccountEnabled">Group</span>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-md-{{ $ctrl.rule.crossAccountEnabled ? 9 : 12 }}">
|
|
43
|
+
<ui-select
|
|
44
|
+
ng-if="!$ctrl.rule.existing"
|
|
45
|
+
ng-model="$ctrl.rule.name"
|
|
46
|
+
uis-open-close="$ctrl.resetCurrentItems()"
|
|
47
|
+
class="form-control input-sm"
|
|
48
|
+
required
|
|
49
|
+
style="width: 100%"
|
|
50
|
+
>
|
|
51
|
+
<ui-select-match>{{ $select.selected }}</ui-select-match>
|
|
52
|
+
<ui-select-choices
|
|
53
|
+
repeat="securityGroup as securityGroup in $ctrl.availableSecurityGroups | filter: $select.search | limitTo: $ctrl.infiniteScroll.currentItems"
|
|
54
|
+
infinite-scroll="$ctrl.addMoreItems()"
|
|
55
|
+
infinite-scroll-distance="4"
|
|
56
|
+
>
|
|
57
|
+
<span ng-bind-html="securityGroup | highlight: $select.search"></span>
|
|
58
|
+
</ui-select-choices>
|
|
59
|
+
</ui-select>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<a
|
|
64
|
+
href
|
|
65
|
+
class="small"
|
|
66
|
+
ng-if="!$ctrl.rule.existing && $ctrl.securityGroup.regions.length === 1 && !$ctrl.rule.crossAccountEnabled"
|
|
67
|
+
ng-click="$ctrl.enableCrossAccount($index)"
|
|
68
|
+
>
|
|
69
|
+
Select from a different account <span ng-if="$ctrl.securityGroup.vpcId">or VPC</span>
|
|
70
|
+
</a>
|
|
71
|
+
|
|
72
|
+
<div ng-if="$ctrl.crossAccountAccounts && $ctrl.crossAccountAccounts.length !== $ctrl.accounts.length">
|
|
73
|
+
<help-field key="aws.securityGroup.cross.account.ingress.help" expand="true"></help-field>
|
|
74
|
+
</div>
|
|
75
|
+
<span ng-if="$ctrl.securityGroup.regions.length > 1" class="small">
|
|
76
|
+
Cross-account rules disabled when 2+ regions selected
|
|
77
|
+
</span>
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { IComponentOptions, IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import { intersection, uniq } from 'lodash';
|
|
4
|
+
import type { Subject, Subscription } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
import type {
|
|
7
|
+
IAccountDetails,
|
|
8
|
+
ISecurityGroup,
|
|
9
|
+
ISecurityGroupRule,
|
|
10
|
+
ISecurityGroupsByAccountSourceData,
|
|
11
|
+
IVpc,
|
|
12
|
+
} from '@spinnaker/core';
|
|
13
|
+
import { AWSProviderSettings } from '../../aws.settings';
|
|
14
|
+
|
|
15
|
+
interface IInfiniteScroll {
|
|
16
|
+
currentItems: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface IRuleCommand extends ISecurityGroupRule {
|
|
20
|
+
crossAccountEnabled?: boolean;
|
|
21
|
+
accountName?: string;
|
|
22
|
+
vpcId?: string;
|
|
23
|
+
existing: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface ISecurityGroupCommand extends ISecurityGroup {
|
|
28
|
+
regions: string[];
|
|
29
|
+
credentials: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
class IngressRuleSelectorController implements IController {
|
|
33
|
+
public rule: IRuleCommand;
|
|
34
|
+
public securityGroup: ISecurityGroupCommand;
|
|
35
|
+
public accounts: IAccountDetails[];
|
|
36
|
+
public crossAccountAccounts: IAccountDetails[];
|
|
37
|
+
public vpcs: IVpc[];
|
|
38
|
+
public regionalVpcs: { [region: string]: IVpc[] };
|
|
39
|
+
public allSecurityGroups: ISecurityGroupsByAccountSourceData;
|
|
40
|
+
public coordinatesChanged: Subject<void>;
|
|
41
|
+
public allSecurityGroupsUpdated: Subject<void>;
|
|
42
|
+
public availableSecurityGroups: string[];
|
|
43
|
+
public coordinatesChangedListener: Subscription;
|
|
44
|
+
public securityGroupsUpdatedListener: Subscription;
|
|
45
|
+
|
|
46
|
+
public infiniteScroll: IInfiniteScroll = {
|
|
47
|
+
currentItems: 20,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
public addMoreItems(): void {
|
|
51
|
+
this.infiniteScroll.currentItems += 20;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public resetCurrentItems(): void {
|
|
55
|
+
this.infiniteScroll.currentItems = 20;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public addRegionalVpc(vpc: IVpc): void {
|
|
59
|
+
const account = vpc.account;
|
|
60
|
+
if (!this.regionalVpcs[account]) {
|
|
61
|
+
this.regionalVpcs[account] = [];
|
|
62
|
+
}
|
|
63
|
+
this.regionalVpcs[account].push({
|
|
64
|
+
name: vpc.name,
|
|
65
|
+
region: vpc.region,
|
|
66
|
+
account,
|
|
67
|
+
id: vpc.id,
|
|
68
|
+
label: vpc.label,
|
|
69
|
+
deprecated: vpc.deprecated,
|
|
70
|
+
cloudProvider: vpc.cloudProvider,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public enableCrossAccount(): void {
|
|
75
|
+
this.rule.crossAccountEnabled = true;
|
|
76
|
+
this.crossAccountAccounts = this.accounts;
|
|
77
|
+
const exclusions = AWSProviderSettings?.crossAccountIngressExclusions[this.securityGroup.credentials];
|
|
78
|
+
if (exclusions && Array.isArray(exclusions)) {
|
|
79
|
+
this.crossAccountAccounts = this.accounts.filter((account) => !exclusions.includes(account.name));
|
|
80
|
+
}
|
|
81
|
+
this.rule.accountName = this.securityGroup.credentials;
|
|
82
|
+
this.rule.vpcId = this.securityGroup.vpcId;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public disableCrossAccount(): void {
|
|
86
|
+
this.rule.crossAccountEnabled = false;
|
|
87
|
+
this.rule.accountName = undefined;
|
|
88
|
+
this.rule.vpcId = undefined;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public $onInit(): void {
|
|
92
|
+
this.setAvailableSecurityGroups();
|
|
93
|
+
this.coordinatesChangedListener = this.coordinatesChanged.subscribe(() => this.setAvailableSecurityGroups());
|
|
94
|
+
this.securityGroupsUpdatedListener = this.allSecurityGroupsUpdated.subscribe(() =>
|
|
95
|
+
this.setAvailableSecurityGroups(),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public $onDestroy() {
|
|
100
|
+
this.coordinatesChangedListener.unsubscribe();
|
|
101
|
+
this.securityGroupsUpdatedListener.unsubscribe();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
public setAvailableSecurityGroups(): void {
|
|
105
|
+
const account = this.rule.accountName || this.securityGroup.credentials;
|
|
106
|
+
const regions = this.securityGroup.regions;
|
|
107
|
+
const vpcId = this.rule.vpcId || this.securityGroup.vpcId || null;
|
|
108
|
+
|
|
109
|
+
let existingSecurityGroupNames: string[] = [];
|
|
110
|
+
let availableSecurityGroups: string[] = [];
|
|
111
|
+
|
|
112
|
+
if (regions.length > 1) {
|
|
113
|
+
this.disableCrossAccount();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
regions.forEach((region) => {
|
|
117
|
+
let regionalVpcId: string = null;
|
|
118
|
+
if (vpcId) {
|
|
119
|
+
const baseVpc: IVpc = this.vpcs.find((vpc) => vpc.id === vpcId);
|
|
120
|
+
const regionalVpc: IVpc = this.vpcs.find(
|
|
121
|
+
(vpc) => vpc.account === account && vpc.region === region && vpc.name === baseVpc.name,
|
|
122
|
+
);
|
|
123
|
+
regionalVpcId = regionalVpc ? regionalVpc.id : undefined;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const regionalGroupNames = (this.allSecurityGroups?.[account]?.aws?.[region] ?? [])
|
|
127
|
+
.filter((sg) => sg.vpcId === regionalVpcId)
|
|
128
|
+
.map((sg) => sg.name);
|
|
129
|
+
|
|
130
|
+
existingSecurityGroupNames = uniq(existingSecurityGroupNames.concat(regionalGroupNames));
|
|
131
|
+
|
|
132
|
+
if (!availableSecurityGroups.length) {
|
|
133
|
+
availableSecurityGroups = existingSecurityGroupNames;
|
|
134
|
+
} else {
|
|
135
|
+
availableSecurityGroups = intersection(availableSecurityGroups, regionalGroupNames);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
if (regions.length === 1) {
|
|
139
|
+
this.configureAvailableVpcs();
|
|
140
|
+
}
|
|
141
|
+
this.availableSecurityGroups = availableSecurityGroups;
|
|
142
|
+
if (!availableSecurityGroups.includes(this.rule.name) && !this.rule.existing) {
|
|
143
|
+
this.rule.name = null;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public configureAvailableVpcs(): void {
|
|
148
|
+
const region = this.securityGroup.regions[0];
|
|
149
|
+
const filtered = this.vpcs.filter((vpc) => vpc.region === region);
|
|
150
|
+
this.regionalVpcs = {};
|
|
151
|
+
filtered.forEach((vpc) => this.addRegionalVpc(vpc));
|
|
152
|
+
this.reconcileRuleVpc(filtered);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private reconcileRuleVpc(filtered: IVpc[]): void {
|
|
156
|
+
if (this.rule.vpcId && !this.rule.existing) {
|
|
157
|
+
if (!this.securityGroup.vpcId) {
|
|
158
|
+
this.rule.vpcId = null;
|
|
159
|
+
this.rule.name = null;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const baseVpc = filtered.find((vpc) => vpc.id === this.rule.vpcId);
|
|
163
|
+
const regionalVpc = filtered.find((vpc) => vpc.account === this.rule.accountName && vpc.name === baseVpc.name);
|
|
164
|
+
if (regionalVpc) {
|
|
165
|
+
this.rule.vpcId = regionalVpc.id;
|
|
166
|
+
} else {
|
|
167
|
+
this.rule.vpcId = null;
|
|
168
|
+
this.rule.name = null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const ingressRuleSelector: IComponentOptions = {
|
|
175
|
+
bindings: {
|
|
176
|
+
rule: '=',
|
|
177
|
+
securityGroup: '=',
|
|
178
|
+
accounts: '=',
|
|
179
|
+
vpcs: '=',
|
|
180
|
+
allSecurityGroups: '=',
|
|
181
|
+
coordinatesChanged: '=',
|
|
182
|
+
allSecurityGroupsUpdated: '=',
|
|
183
|
+
},
|
|
184
|
+
templateUrl: require('./ingressRuleGroupSelector.component.html'),
|
|
185
|
+
controller: IngressRuleSelectorController,
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export const INGRESS_RULE_GROUP_SELECTOR_COMPONENT =
|
|
189
|
+
'spinnaker.amazon.securityGroup.configure.ingressRuleGroupSelector';
|
|
190
|
+
module(INGRESS_RULE_GROUP_SELECTOR_COMPONENT, []).component('ingressRuleGroupSelector', ingressRuleSelector);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
import { react2angular } from 'react2angular';
|
|
3
|
+
|
|
4
|
+
import { withErrorBoundary } from '@spinnaker/core';
|
|
5
|
+
|
|
6
|
+
import { SecurityGroupDetailsCustom } from './securityGroupDetailsCustom';
|
|
7
|
+
|
|
8
|
+
export const AWS_SECURITY_GROUP_DETAILS_CUSTOM = 'spinnaker.amazon.securityGroups.details.custom.component';
|
|
9
|
+
module(AWS_SECURITY_GROUP_DETAILS_CUSTOM, []).component(
|
|
10
|
+
'securityGroupDetailsCustom',
|
|
11
|
+
react2angular(withErrorBoundary(SecurityGroupDetailsCustom, 'securityGroupDetailsCustom'), [
|
|
12
|
+
'securityGroupDetails',
|
|
13
|
+
'ctrl',
|
|
14
|
+
'scope',
|
|
15
|
+
]),
|
|
16
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Overridable } from '@spinnaker/core';
|
|
3
|
+
import type { ISecurityGroupDetail } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
export interface IAdditionalIpRulesProps {
|
|
6
|
+
securityGroupDetails: ISecurityGroupDetail;
|
|
7
|
+
ctrl: any;
|
|
8
|
+
scope: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Overridable('aws.securityGroup.details.custom')
|
|
12
|
+
export class SecurityGroupDetailsCustom extends React.Component<IAdditionalIpRulesProps> {
|
|
13
|
+
public render(): any {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection, LabeledValue, LabeledValueList, Overridable } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
export interface IIPRangeRulesProps {
|
|
6
|
+
ipRules: IIPRangeRulesDetails[];
|
|
7
|
+
}
|
|
8
|
+
export interface IIPRangeRulesDetails {
|
|
9
|
+
rules: IRangeRule[];
|
|
10
|
+
address: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IRangeRule {
|
|
14
|
+
startPort: number;
|
|
15
|
+
endPort: number;
|
|
16
|
+
protocol: string;
|
|
17
|
+
description: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Overridable('aws.securityGroup.ip.rules')
|
|
21
|
+
export class IPRangeRules extends React.Component<IIPRangeRulesProps> {
|
|
22
|
+
public render() {
|
|
23
|
+
const ipRules = this.props.ipRules || [];
|
|
24
|
+
const heading = `IP Range Rules (${ipRules.length})`;
|
|
25
|
+
return (
|
|
26
|
+
<CollapsibleSection heading={heading}>
|
|
27
|
+
{ipRules.map((rule) => (
|
|
28
|
+
<LabeledValueList className="horizontal-when-filters-collapsed">
|
|
29
|
+
<LabeledValue label="IP Range" value={rule.address} />
|
|
30
|
+
<LabeledValue
|
|
31
|
+
label="Port Ranges"
|
|
32
|
+
value={rule.rules.map((r) =>
|
|
33
|
+
r.protocol === '-1' ? (
|
|
34
|
+
<span>
|
|
35
|
+
All ports and protocols
|
|
36
|
+
{rule.rules.length > 1 ? (
|
|
37
|
+
<div>
|
|
38
|
+
<em>Additional port ranges are specified, but redundant:</em>
|
|
39
|
+
</div>
|
|
40
|
+
) : null}
|
|
41
|
+
</span>
|
|
42
|
+
) : (
|
|
43
|
+
<div>
|
|
44
|
+
<span>
|
|
45
|
+
{r.protocol}:{r.startPort} → {r.endPort}
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
),
|
|
49
|
+
)}
|
|
50
|
+
/>
|
|
51
|
+
</LabeledValueList>
|
|
52
|
+
))}
|
|
53
|
+
</CollapsibleSection>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IPRangeRules';
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
|
|
4
|
+
import * as angular from 'angular';
|
|
5
|
+
import _ from 'lodash';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
CloudProviderRegistry,
|
|
9
|
+
ConfirmationModalService,
|
|
10
|
+
confirmNotManaged,
|
|
11
|
+
FirewallLabels,
|
|
12
|
+
MANAGED_RESOURCE_DETAILS_INDICATOR,
|
|
13
|
+
noop,
|
|
14
|
+
RecentHistoryService,
|
|
15
|
+
SECURITY_GROUP_READER,
|
|
16
|
+
SecurityGroupWriter,
|
|
17
|
+
SETTINGS,
|
|
18
|
+
} from '@spinnaker/core';
|
|
19
|
+
|
|
20
|
+
import { AWSProviderSettings } from '../../aws.settings';
|
|
21
|
+
import { AMAZON_SECURITYGROUP_CLONE_CLONESECURITYGROUP_CONTROLLER } from '../clone/cloneSecurityGroup.controller';
|
|
22
|
+
import { VpcReader } from '../../vpc/VpcReader';
|
|
23
|
+
|
|
24
|
+
export const AMAZON_SECURITYGROUP_DETAILS_SECURITYGROUPDETAIL_CONTROLLER =
|
|
25
|
+
'spinnaker.amazon.securityGroup.details.controller';
|
|
26
|
+
export const name = AMAZON_SECURITYGROUP_DETAILS_SECURITYGROUPDETAIL_CONTROLLER; // for backwards compatibility
|
|
27
|
+
angular
|
|
28
|
+
.module(AMAZON_SECURITYGROUP_DETAILS_SECURITYGROUPDETAIL_CONTROLLER, [
|
|
29
|
+
UIROUTER_ANGULARJS,
|
|
30
|
+
SECURITY_GROUP_READER,
|
|
31
|
+
AMAZON_SECURITYGROUP_CLONE_CLONESECURITYGROUP_CONTROLLER,
|
|
32
|
+
MANAGED_RESOURCE_DETAILS_INDICATOR,
|
|
33
|
+
])
|
|
34
|
+
.controller('awsSecurityGroupDetailsCtrl', [
|
|
35
|
+
'$scope',
|
|
36
|
+
'$state',
|
|
37
|
+
'resolvedSecurityGroup',
|
|
38
|
+
'app',
|
|
39
|
+
'securityGroupReader',
|
|
40
|
+
'$uibModal',
|
|
41
|
+
function ($scope, $state, resolvedSecurityGroup, app, securityGroupReader, $uibModal) {
|
|
42
|
+
this.application = app;
|
|
43
|
+
const application = app;
|
|
44
|
+
const securityGroup = resolvedSecurityGroup;
|
|
45
|
+
this.firewallLabel = FirewallLabels.get('Firewall');
|
|
46
|
+
|
|
47
|
+
// needed for standalone instances
|
|
48
|
+
$scope.detailsTemplateUrl = CloudProviderRegistry.getValue('aws', 'securityGroup.detailsTemplateUrl');
|
|
49
|
+
|
|
50
|
+
$scope.isDisabled = !AWSProviderSettings.adHocInfraWritesEnabled;
|
|
51
|
+
|
|
52
|
+
$scope.state = {
|
|
53
|
+
loading: true,
|
|
54
|
+
standalone: app.isStandalone,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
function extractSecurityGroup() {
|
|
58
|
+
return securityGroupReader
|
|
59
|
+
.getSecurityGroupDetails(
|
|
60
|
+
application,
|
|
61
|
+
securityGroup.accountId,
|
|
62
|
+
securityGroup.provider,
|
|
63
|
+
securityGroup.region,
|
|
64
|
+
securityGroup.vpcId,
|
|
65
|
+
securityGroup.name,
|
|
66
|
+
)
|
|
67
|
+
.then(function (details) {
|
|
68
|
+
return VpcReader.getVpcName(details.vpcId).then((name) => {
|
|
69
|
+
details.vpcName = name;
|
|
70
|
+
return details;
|
|
71
|
+
});
|
|
72
|
+
})
|
|
73
|
+
.then(function (details) {
|
|
74
|
+
$scope.state.loading = false;
|
|
75
|
+
|
|
76
|
+
if (!details || _.isEmpty(details)) {
|
|
77
|
+
fourOhFour();
|
|
78
|
+
} else {
|
|
79
|
+
const applicationSecurityGroup = securityGroupReader.getApplicationSecurityGroup(
|
|
80
|
+
application,
|
|
81
|
+
securityGroup.accountId,
|
|
82
|
+
securityGroup.region,
|
|
83
|
+
securityGroup.name,
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
angular.extend(securityGroup, applicationSecurityGroup, details);
|
|
87
|
+
$scope.securityGroup = securityGroup;
|
|
88
|
+
$scope.ipRules = buildIpRulesModel(securityGroup);
|
|
89
|
+
$scope.securityGroupRules = buildSecurityGroupRulesModel(securityGroup);
|
|
90
|
+
}
|
|
91
|
+
}, fourOhFour);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function buildIpRulesModel(details) {
|
|
95
|
+
const groupedRangeRules = _.groupBy(details.ipRangeRules, (rule) => rule.range.ip + rule.range.cidr);
|
|
96
|
+
return Object.keys(groupedRangeRules)
|
|
97
|
+
.map((addr) => {
|
|
98
|
+
return {
|
|
99
|
+
address: addr,
|
|
100
|
+
rules: buildRuleModel(groupedRangeRules, addr),
|
|
101
|
+
};
|
|
102
|
+
})
|
|
103
|
+
.filter((rule) => rule.rules.length);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function buildSecurityGroupRulesModel(details) {
|
|
107
|
+
const groupedRangeRules = _.groupBy(details.securityGroupRules, (rule) => rule.securityGroup.id);
|
|
108
|
+
return Object.keys(groupedRangeRules)
|
|
109
|
+
.map((addr) => {
|
|
110
|
+
return {
|
|
111
|
+
securityGroup: groupedRangeRules[addr][0].securityGroup,
|
|
112
|
+
rules: buildRuleModel(groupedRangeRules, addr),
|
|
113
|
+
};
|
|
114
|
+
})
|
|
115
|
+
.filter((rule) => rule.rules.length);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function buildRuleModel(groupedRangeRules, addr) {
|
|
119
|
+
const rules = [];
|
|
120
|
+
groupedRangeRules[addr].forEach((rule) => {
|
|
121
|
+
(rule.portRanges || []).forEach((range) => {
|
|
122
|
+
if (rule.protocol === '-1' || (range.startPort !== undefined && range.endPort !== undefined)) {
|
|
123
|
+
rules.push({
|
|
124
|
+
startPort: range.startPort,
|
|
125
|
+
endPort: range.endPort,
|
|
126
|
+
protocol: rule.protocol,
|
|
127
|
+
description: rule.description,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
return rules;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function fourOhFour() {
|
|
136
|
+
if ($scope.$$destroyed) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
if (app.isStandalone) {
|
|
140
|
+
$scope.group = securityGroup.name;
|
|
141
|
+
$scope.state.notFound = true;
|
|
142
|
+
$scope.state.loading = false;
|
|
143
|
+
RecentHistoryService.removeLastItem('securityGroups');
|
|
144
|
+
} else {
|
|
145
|
+
$state.go('^', { allowModalToStayOpen: true }, { location: 'replace' });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
extractSecurityGroup().then(() => {
|
|
150
|
+
// If the user navigates away from the view before the initial extractSecurityGroup call completes,
|
|
151
|
+
// do not bother subscribing to the refresh
|
|
152
|
+
if (!$scope.$$destroyed && !app.isStandalone) {
|
|
153
|
+
app.securityGroups.onRefresh($scope, extractSecurityGroup);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
function checkManagement() {
|
|
158
|
+
return confirmNotManaged($scope.securityGroup, application);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
this.editInboundRules = function editInboundRules() {
|
|
162
|
+
confirmNotManaged($scope.securityGroup, application).then((notManaged) => {
|
|
163
|
+
// Wait for the MD confirmation modal to go away first to avoid react/angular bootstrap fighting over the body.modal-open class
|
|
164
|
+
return new Promise((resolve) => setTimeout(resolve, 500)).then(() => {
|
|
165
|
+
if (notManaged) {
|
|
166
|
+
$uibModal.open({
|
|
167
|
+
templateUrl: require('../configure/editSecurityGroup.html'),
|
|
168
|
+
controller: 'awsEditSecurityGroupCtrl as ctrl',
|
|
169
|
+
size: 'lg',
|
|
170
|
+
resolve: {
|
|
171
|
+
securityGroup: function () {
|
|
172
|
+
return angular.copy($scope.securityGroup);
|
|
173
|
+
},
|
|
174
|
+
application: function () {
|
|
175
|
+
return application;
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
this.cloneSecurityGroup = function cloneSecurityGroup() {
|
|
185
|
+
$uibModal.open({
|
|
186
|
+
templateUrl: require('../clone/cloneSecurityGroup.html'),
|
|
187
|
+
controller: 'awsCloneSecurityGroupController as ctrl',
|
|
188
|
+
size: 'lg',
|
|
189
|
+
resolve: {
|
|
190
|
+
securityGroup: function () {
|
|
191
|
+
const securityGroup = angular.copy($scope.securityGroup);
|
|
192
|
+
if (securityGroup.region) {
|
|
193
|
+
securityGroup.regions = [securityGroup.region];
|
|
194
|
+
}
|
|
195
|
+
return securityGroup;
|
|
196
|
+
},
|
|
197
|
+
application: function () {
|
|
198
|
+
return application;
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
this.deleteSecurityGroup = function deleteSecurityGroup() {
|
|
205
|
+
let isRetry = false;
|
|
206
|
+
const retryParams = { removeDependencies: true };
|
|
207
|
+
|
|
208
|
+
const taskMonitor = {
|
|
209
|
+
application: application,
|
|
210
|
+
title: 'Deleting ' + securityGroup.name,
|
|
211
|
+
onTaskRetry: () => {
|
|
212
|
+
isRetry = true;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const submitMethod = () => {
|
|
217
|
+
const params = {
|
|
218
|
+
cloudProvider: securityGroup.provider,
|
|
219
|
+
vpcId: securityGroup.vpcId,
|
|
220
|
+
};
|
|
221
|
+
if (isRetry) {
|
|
222
|
+
Object.assign(params, retryParams);
|
|
223
|
+
}
|
|
224
|
+
return SecurityGroupWriter.deleteSecurityGroup(securityGroup, application, params);
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
confirmNotManaged($scope.securityGroup, application).then((notManaged) => {
|
|
228
|
+
notManaged &&
|
|
229
|
+
ConfirmationModalService.confirm({
|
|
230
|
+
header: 'Really delete ' + securityGroup.name + '?',
|
|
231
|
+
buttonText: 'Delete ' + securityGroup.name,
|
|
232
|
+
account: securityGroup.accountId,
|
|
233
|
+
taskMonitorConfig: taskMonitor,
|
|
234
|
+
submitMethod: submitMethod,
|
|
235
|
+
retryBody: `<div><p>Retry deleting the ${FirewallLabels.get(
|
|
236
|
+
'firewall',
|
|
237
|
+
)} and revoke any dependent ingress rules?</p><p>Any instance or load balancer associations will have to removed manually.</p></div>`,
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
if (app.isStandalone) {
|
|
243
|
+
// we still want the edit to refresh the firewall details when the modal closes
|
|
244
|
+
app.securityGroups = {
|
|
245
|
+
refresh: extractSecurityGroup,
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
]);
|