@spinnaker/amazon 0.0.0-main-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/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 +66 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +157 -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,366 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
|
|
4
|
+
import { module } from 'angular';
|
|
5
|
+
import _ from 'lodash';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
AccountService,
|
|
10
|
+
filterObjectValues,
|
|
11
|
+
FirewallLabels,
|
|
12
|
+
InfrastructureCaches,
|
|
13
|
+
ModalWizard,
|
|
14
|
+
NameUtils,
|
|
15
|
+
SECURITY_GROUP_READER,
|
|
16
|
+
SecurityGroupWriter,
|
|
17
|
+
TaskMonitor,
|
|
18
|
+
} from '@spinnaker/core';
|
|
19
|
+
import { AWSProviderSettings } from '../../aws.settings';
|
|
20
|
+
import { VpcReader } from '../../vpc/VpcReader';
|
|
21
|
+
|
|
22
|
+
export const AMAZON_SECURITYGROUP_CONFIGURE_CONFIGSECURITYGROUP_MIXIN_CONTROLLER =
|
|
23
|
+
'spinnaker.amazon.securityGroup.baseConfig.controller';
|
|
24
|
+
export const name = AMAZON_SECURITYGROUP_CONFIGURE_CONFIGSECURITYGROUP_MIXIN_CONTROLLER; // for backwards compatibility
|
|
25
|
+
module(AMAZON_SECURITYGROUP_CONFIGURE_CONFIGSECURITYGROUP_MIXIN_CONTROLLER, [
|
|
26
|
+
UIROUTER_ANGULARJS,
|
|
27
|
+
SECURITY_GROUP_READER,
|
|
28
|
+
]).controller('awsConfigSecurityGroupMixin', [
|
|
29
|
+
'$scope',
|
|
30
|
+
'$state',
|
|
31
|
+
'$uibModalInstance',
|
|
32
|
+
'application',
|
|
33
|
+
'securityGroup',
|
|
34
|
+
'securityGroupReader',
|
|
35
|
+
'cacheInitializer',
|
|
36
|
+
function ($scope, $state, $uibModalInstance, application, securityGroup, securityGroupReader, cacheInitializer) {
|
|
37
|
+
let allSecurityGroups;
|
|
38
|
+
const ctrl = this;
|
|
39
|
+
$scope.self = $scope;
|
|
40
|
+
$scope.application = application;
|
|
41
|
+
$scope.customComponentIsvalid = true;
|
|
42
|
+
|
|
43
|
+
$scope.state = {
|
|
44
|
+
submitting: false,
|
|
45
|
+
regionError: undefined,
|
|
46
|
+
refreshingSecurityGroups: false,
|
|
47
|
+
removedRules: [],
|
|
48
|
+
infiniteScroll: {
|
|
49
|
+
numToAdd: 20,
|
|
50
|
+
currentItems: 20,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
$scope.allVpcs = [];
|
|
55
|
+
$scope.wizard = ModalWizard;
|
|
56
|
+
$scope.hideClassic = false;
|
|
57
|
+
|
|
58
|
+
ctrl.addMoreItems = function () {
|
|
59
|
+
$scope.state.infiniteScroll.currentItems += $scope.state.infiniteScroll.numToAdd;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const getAccount = () => $scope.securityGroup.accountName || $scope.securityGroup.credentials;
|
|
63
|
+
|
|
64
|
+
function onApplicationRefresh() {
|
|
65
|
+
// If the user has already closed the modal, do not navigate to the new details view
|
|
66
|
+
if ($scope.$$destroyed) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
$uibModalInstance.close();
|
|
70
|
+
const newStateParams = {
|
|
71
|
+
name: $scope.securityGroup.name,
|
|
72
|
+
accountId: getAccount(),
|
|
73
|
+
region: $scope.securityGroup.regions[0],
|
|
74
|
+
vpcId: $scope.securityGroup.vpcId,
|
|
75
|
+
provider: 'aws',
|
|
76
|
+
};
|
|
77
|
+
if (!$state.includes('**.firewallDetails')) {
|
|
78
|
+
$state.go('.firewallDetails', newStateParams);
|
|
79
|
+
} else {
|
|
80
|
+
$state.go('^.firewallDetails', newStateParams);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function onTaskComplete() {
|
|
85
|
+
application.securityGroups.refresh();
|
|
86
|
+
application.securityGroups.onNextRefresh($scope, onApplicationRefresh);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
$scope.taskMonitor = new TaskMonitor({
|
|
90
|
+
application: application,
|
|
91
|
+
title: `Creating your ${FirewallLabels.get('firewall')}`,
|
|
92
|
+
modalInstance: $uibModalInstance,
|
|
93
|
+
onTaskComplete: onTaskComplete,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
$scope.securityGroup = securityGroup;
|
|
97
|
+
|
|
98
|
+
ctrl.initializeAccounts = () => {
|
|
99
|
+
return AccountService.listAllAccounts('aws').then(function (accounts) {
|
|
100
|
+
$scope.accounts = accounts.filter((a) => a.authorized !== false);
|
|
101
|
+
$scope.allAccounts = accounts;
|
|
102
|
+
ctrl.accountUpdated();
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
ctrl.upsert = function () {
|
|
107
|
+
$scope.taskMonitor.submit(function () {
|
|
108
|
+
return SecurityGroupWriter.upsertSecurityGroup($scope.securityGroup, application, 'Create');
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
function clearSecurityGroups() {
|
|
113
|
+
$scope.availableSecurityGroups = [];
|
|
114
|
+
$scope.existingSecurityGroupNames = [];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ctrl.accountUpdated = function () {
|
|
118
|
+
const securityGroup = $scope.securityGroup;
|
|
119
|
+
// sigh.
|
|
120
|
+
securityGroup.account = securityGroup.accountId = securityGroup.accountName = securityGroup.credentials;
|
|
121
|
+
AccountService.getRegionsForAccount(getAccount()).then((regions) => {
|
|
122
|
+
$scope.regions = regions.map((region) => region.name);
|
|
123
|
+
clearSecurityGroups();
|
|
124
|
+
ctrl.regionUpdated();
|
|
125
|
+
if ($scope.state.isNew) {
|
|
126
|
+
ctrl.updateName();
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
ctrl.regionUpdated = function () {
|
|
132
|
+
const account = getAccount();
|
|
133
|
+
const regions = $scope.securityGroup.regions || [];
|
|
134
|
+
VpcReader.listVpcs().then(function (vpcs) {
|
|
135
|
+
const vpcsByName = _.groupBy(
|
|
136
|
+
vpcs.filter((vpc) => vpc.account === account),
|
|
137
|
+
'label',
|
|
138
|
+
);
|
|
139
|
+
$scope.allVpcs = vpcs;
|
|
140
|
+
const available = [];
|
|
141
|
+
_.forOwn(vpcsByName, function (vpcsToTest, label) {
|
|
142
|
+
const foundInAllRegions = regions.every((region) => {
|
|
143
|
+
return vpcsToTest.some((test) => test.region === region && test.account === account);
|
|
144
|
+
});
|
|
145
|
+
if (foundInAllRegions) {
|
|
146
|
+
available.push({
|
|
147
|
+
ids: vpcsToTest.filter((t) => regions.includes(t.region)).map((vpc) => vpc.id),
|
|
148
|
+
label: label,
|
|
149
|
+
deprecated: vpcsToTest[0].deprecated,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
$scope.activeVpcs = available.filter(function (vpc) {
|
|
155
|
+
return !vpc.deprecated;
|
|
156
|
+
});
|
|
157
|
+
$scope.deprecatedVpcs = available.filter(function (vpc) {
|
|
158
|
+
return vpc.deprecated;
|
|
159
|
+
});
|
|
160
|
+
$scope.vpcs = available;
|
|
161
|
+
$scope.state.regionError =
|
|
162
|
+
$scope.state.isClone && ($scope.securityGroup.regions || []).includes($scope.state.originRegion);
|
|
163
|
+
ctrl.updateVpcId(available);
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
this.updateVpcId = (available) => {
|
|
168
|
+
const lockoutDate = AWSProviderSettings.classicLaunchLockout;
|
|
169
|
+
if (!securityGroup.id && lockoutDate) {
|
|
170
|
+
const createTs = Number(_.get(application, 'attributes.createTs', 0));
|
|
171
|
+
if (createTs >= lockoutDate) {
|
|
172
|
+
$scope.hideClassic = true;
|
|
173
|
+
if (!securityGroup.vpcId && available.length) {
|
|
174
|
+
let defaultMatch;
|
|
175
|
+
if (AWSProviderSettings.defaults.vpc) {
|
|
176
|
+
const match = available.find((vpc) => vpc.label === AWSProviderSettings.defaults.vpc);
|
|
177
|
+
if (match) {
|
|
178
|
+
defaultMatch = match.ids[0];
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
securityGroup.vpcId =
|
|
182
|
+
defaultMatch || ($scope.activeVpcs.length ? $scope.activeVpcs[0].ids[0] : available[0].ids[0]);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// When cloning a security group, if a user chooses a different account to clone to, but wants to retain the same VPC in this new account, it was not possible.
|
|
188
|
+
// We matched the vpc ids from one account to another but they are never the same. In order to ensure that users still retain their VPC choice, irrespective of the account, we switched to using vpc names instead of vpc ids
|
|
189
|
+
const selectedVpc = $scope.allVpcs.find((vpc) => vpc.id === $scope.securityGroup.vpcId);
|
|
190
|
+
const match = (available || []).find((vpc) => selectedVpc && selectedVpc.label === vpc.label);
|
|
191
|
+
const defaultVpc =
|
|
192
|
+
(available || []).find((vpc) => AWSProviderSettings.defaults.vpc === vpc.label) || ($scope.activeVpcs || [])[0];
|
|
193
|
+
$scope.securityGroup.vpcId = (match && match.ids[0]) || (defaultVpc && defaultVpc.ids[0]);
|
|
194
|
+
this.vpcUpdated();
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
this.vpcUpdated = function () {
|
|
198
|
+
const account = getAccount();
|
|
199
|
+
const regions = $scope.securityGroup.regions;
|
|
200
|
+
if (account && regions.length) {
|
|
201
|
+
configureFilteredSecurityGroups();
|
|
202
|
+
} else {
|
|
203
|
+
clearSecurityGroups();
|
|
204
|
+
}
|
|
205
|
+
$scope.coordinatesChanged.next();
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
function configureFilteredSecurityGroups() {
|
|
209
|
+
const vpcId = $scope.securityGroup.vpcId || null;
|
|
210
|
+
const account = getAccount();
|
|
211
|
+
const regions = $scope.securityGroup.regions || [];
|
|
212
|
+
let existingSecurityGroupNames = [];
|
|
213
|
+
let availableSecurityGroups = [];
|
|
214
|
+
|
|
215
|
+
regions.forEach(function (region) {
|
|
216
|
+
let regionalVpcId = null;
|
|
217
|
+
if (vpcId) {
|
|
218
|
+
const baseVpc = _.find($scope.allVpcs, { id: vpcId });
|
|
219
|
+
regionalVpcId = _.find($scope.allVpcs, { account: account, region: region, name: baseVpc.name }).id;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const regionalGroupNames = _.get(allSecurityGroups, [account, 'aws', region].join('.'), [])
|
|
223
|
+
.filter((sg) => sg.vpcId === regionalVpcId)
|
|
224
|
+
.map((sg) => sg.name);
|
|
225
|
+
|
|
226
|
+
existingSecurityGroupNames = _.uniq(existingSecurityGroupNames.concat(regionalGroupNames));
|
|
227
|
+
|
|
228
|
+
if (!availableSecurityGroups.length) {
|
|
229
|
+
availableSecurityGroups = existingSecurityGroupNames;
|
|
230
|
+
} else {
|
|
231
|
+
availableSecurityGroups = _.intersection(availableSecurityGroups, regionalGroupNames);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
$scope.availableSecurityGroups = availableSecurityGroups;
|
|
236
|
+
$scope.existingSecurityGroupNames = existingSecurityGroupNames;
|
|
237
|
+
$scope.state.securityGroupsLoaded = true;
|
|
238
|
+
clearInvalidSecurityGroups();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
ctrl.mixinUpsert = function (descriptor) {
|
|
242
|
+
$scope.taskMonitor.submit(function () {
|
|
243
|
+
return SecurityGroupWriter.upsertSecurityGroup($scope.securityGroup, application, descriptor);
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
function clearInvalidSecurityGroups() {
|
|
248
|
+
const removed = $scope.state.removedRules;
|
|
249
|
+
const securityGroup = $scope.securityGroup;
|
|
250
|
+
$scope.securityGroup.securityGroupIngress = (securityGroup.securityGroupIngress || []).filter((rule) => {
|
|
251
|
+
if (
|
|
252
|
+
rule.accountName &&
|
|
253
|
+
rule.vpcId &&
|
|
254
|
+
(rule.accountName !== securityGroup.accountName || rule.vpcId !== securityGroup.vpcId)
|
|
255
|
+
) {
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
if (rule.name && !$scope.availableSecurityGroups.includes(rule.name) && !removed.includes(rule.name)) {
|
|
259
|
+
removed.push(rule.name);
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
return true;
|
|
263
|
+
});
|
|
264
|
+
if (removed.length) {
|
|
265
|
+
ModalWizard.markDirty('Ingress');
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
ctrl.refreshSecurityGroups = function () {
|
|
270
|
+
$scope.state.refreshingSecurityGroups = true;
|
|
271
|
+
return cacheInitializer.refreshCache('securityGroups').then(function () {
|
|
272
|
+
return ctrl.initializeSecurityGroups().then(function () {
|
|
273
|
+
ctrl.vpcUpdated();
|
|
274
|
+
$scope.state.refreshingSecurityGroups = false;
|
|
275
|
+
setSecurityGroupRefreshTime();
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
function setSecurityGroupRefreshTime() {
|
|
281
|
+
$scope.state.refreshTime = InfrastructureCaches.get('securityGroups').getStats().ageMax;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
allSecurityGroups = {};
|
|
285
|
+
|
|
286
|
+
$scope.allSecurityGroupsUpdated = new Subject();
|
|
287
|
+
$scope.coordinatesChanged = new Subject();
|
|
288
|
+
|
|
289
|
+
ctrl.initializeSecurityGroups = function () {
|
|
290
|
+
return securityGroupReader.getAllSecurityGroups().then(function (securityGroups) {
|
|
291
|
+
setSecurityGroupRefreshTime();
|
|
292
|
+
allSecurityGroups = securityGroups;
|
|
293
|
+
const account = $scope.securityGroup.credentials || $scope.securityGroup.accountName;
|
|
294
|
+
const region = $scope.securityGroup.regions[0];
|
|
295
|
+
const vpcId = $scope.securityGroup.vpcId || null;
|
|
296
|
+
|
|
297
|
+
let availableGroups;
|
|
298
|
+
if (account && region) {
|
|
299
|
+
availableGroups = _.filter(securityGroups[account].aws[region], { vpcId: vpcId });
|
|
300
|
+
} else {
|
|
301
|
+
availableGroups = securityGroups;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
$scope.availableSecurityGroups = _.map(availableGroups, 'name');
|
|
305
|
+
const securityGroupExclusions = AWSProviderSettings.securityGroupExclusions;
|
|
306
|
+
$scope.allSecurityGroups = securityGroupExclusions
|
|
307
|
+
? filterObjectValues(securityGroups, (name) => !securityGroupExclusions.includes(name))
|
|
308
|
+
: securityGroups;
|
|
309
|
+
$scope.allSecurityGroupsUpdated.next();
|
|
310
|
+
$scope.state.regionError =
|
|
311
|
+
$scope.state.isClone && ($scope.securityGroup.regions || []).includes($scope.state.originRegion);
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
ctrl.cancel = function () {
|
|
316
|
+
$uibModalInstance.dismiss();
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
const classicPattern = /^[\x20-\x7F]+$/;
|
|
320
|
+
const vpcPattern = /^[a-zA-Z0-9\s._\-:/()#,@[\]+=&;{}!$*]+$/;
|
|
321
|
+
|
|
322
|
+
ctrl.getCurrentNamePattern = function () {
|
|
323
|
+
return $scope.securityGroup.vpcId ? vpcPattern : classicPattern;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
ctrl.updateName = function () {
|
|
327
|
+
const { securityGroup } = $scope;
|
|
328
|
+
const appName = application.isStandalone ? application.name.split('-')[0] : application.name;
|
|
329
|
+
const name = NameUtils.getClusterName(appName, securityGroup.stack, securityGroup.detail);
|
|
330
|
+
securityGroup.name = name;
|
|
331
|
+
$scope.namePreview = name;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
ctrl.namePattern = {
|
|
335
|
+
test: function (name) {
|
|
336
|
+
return ctrl.getCurrentNamePattern().test(name);
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
ctrl.addRule = function (ruleset) {
|
|
341
|
+
ruleset.push({
|
|
342
|
+
type: 'tcp',
|
|
343
|
+
startPort: 7001,
|
|
344
|
+
endPort: 7001,
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
ctrl.removeRule = function (ruleset, index) {
|
|
349
|
+
ruleset.splice(index, 1);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
ctrl.updateRuleType = function (type, ruleset, index) {
|
|
353
|
+
const rule = ruleset[index];
|
|
354
|
+
if (type === 'icmp' || type === 'icmpv6') {
|
|
355
|
+
rule.startPort = 0;
|
|
356
|
+
rule.endPort = 0;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
ctrl.dismissRemovedRules = function () {
|
|
361
|
+
$scope.state.removedRules = [];
|
|
362
|
+
ModalWizard.markClean('Ingress');
|
|
363
|
+
ModalWizard.markComplete('Ingress');
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<ng-form role="form" name="form" novalidate>
|
|
2
|
+
<v2-modal-wizard heading="Create New {{ctrl.translate('Firewall')}}" task-monitor="taskMonitor" dismiss="$dismiss()">
|
|
3
|
+
<v2-wizard-page key="Location" label="Location">
|
|
4
|
+
<ng-include src="pages.location"></ng-include>
|
|
5
|
+
</v2-wizard-page>
|
|
6
|
+
<v2-wizard-page key="Ingress" label="Ingress" done="true">
|
|
7
|
+
<ng-include src="pages.ingress"></ng-include>
|
|
8
|
+
</v2-wizard-page>
|
|
9
|
+
</v2-modal-wizard>
|
|
10
|
+
<div class="modal-footer">
|
|
11
|
+
<button class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
12
|
+
<submit-button
|
|
13
|
+
is-disabled="form.$invalid || !wizard.isComplete() || state.submitting || !customComponentIsvalid"
|
|
14
|
+
submitting="state.submitting"
|
|
15
|
+
on-click="ctrl.upsert()"
|
|
16
|
+
is-new="state.isNew"
|
|
17
|
+
></submit-button>
|
|
18
|
+
</div>
|
|
19
|
+
</ng-form>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<div class="modal-body">
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="col-md-12" ng-if="state.removedRules.length">
|
|
5
|
+
<div class="alert alert-danger">
|
|
6
|
+
<p>
|
|
7
|
+
<i class="fa fa-exclamation-triangle"></i> The following
|
|
8
|
+
<firewall-label label="firewalls"></firewall-label> could not be found in the selected account/region/VPC
|
|
9
|
+
and were removed:
|
|
10
|
+
</p>
|
|
11
|
+
<ul>
|
|
12
|
+
<li ng-repeat="securityGroup in state.removedRules">{{securityGroup}}</li>
|
|
13
|
+
</ul>
|
|
14
|
+
<p class="text-right">
|
|
15
|
+
<a class="btn btn-sm btn-primary dirty-flag-dismiss" href ng-click="ctrl.dismissRemovedRules()">Okay</a>
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<div class="col-md-12">
|
|
22
|
+
<p class="info">
|
|
23
|
+
<span class="glyphicon glyphicon-info-sign"></span> IP range rules can only be edited through the AWS Console.
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group">
|
|
28
|
+
<div class="col-md-12">
|
|
29
|
+
<table class="table table-condensed packed">
|
|
30
|
+
<thead>
|
|
31
|
+
<tr>
|
|
32
|
+
<th style="width: 50%"><firewall-label label="Firewall"></firewall-label></th>
|
|
33
|
+
<th style="width: 15%">Protocol</th>
|
|
34
|
+
<th style="width: 15%">Start Port</th>
|
|
35
|
+
<th style="width: 15%">End Port</th>
|
|
36
|
+
<th></th>
|
|
37
|
+
</tr>
|
|
38
|
+
</thead>
|
|
39
|
+
<tbody>
|
|
40
|
+
<tr ng-repeat="rule in securityGroup.securityGroupIngress">
|
|
41
|
+
<td>
|
|
42
|
+
<ingress-rule-group-selector
|
|
43
|
+
rule="rule"
|
|
44
|
+
ng-if="state.securityGroupsLoaded"
|
|
45
|
+
security-group="securityGroup"
|
|
46
|
+
vpcs="allVpcs"
|
|
47
|
+
accounts="allAccounts"
|
|
48
|
+
all-security-groups="allSecurityGroups"
|
|
49
|
+
coordinates-changed="coordinatesChanged"
|
|
50
|
+
all-security-groups-updated="allSecurityGroupsUpdated"
|
|
51
|
+
></ingress-rule-group-selector>
|
|
52
|
+
</td>
|
|
53
|
+
<td>
|
|
54
|
+
<select
|
|
55
|
+
class="form-control input-sm"
|
|
56
|
+
ng-model="rule.type"
|
|
57
|
+
ng-options="protocol as protocol.toUpperCase() for protocol in ['tcp', 'udp', 'icmp', 'icmpv6']"
|
|
58
|
+
ng-change="ctrl.updateRuleType(rule.type, securityGroup.securityGroupIngress, $index)"
|
|
59
|
+
required
|
|
60
|
+
></select>
|
|
61
|
+
</td>
|
|
62
|
+
<td><input class="form-control input-sm" type="number" min="0" ng-model="rule.startPort" required /></td>
|
|
63
|
+
<td><input class="form-control input-sm" type="number" min="0" ng-model="rule.endPort" required /></td>
|
|
64
|
+
<td>
|
|
65
|
+
<a class="sm-label" ng-click="ctrl.removeRule(securityGroup.securityGroupIngress, $index)">
|
|
66
|
+
<span class="glyphicon glyphicon-trash"></span
|
|
67
|
+
></a>
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</tbody>
|
|
71
|
+
<tfoot>
|
|
72
|
+
<tr>
|
|
73
|
+
<td colspan="5">
|
|
74
|
+
<button class="add-new col-md-12" ng-click="ctrl.addRule(securityGroup.securityGroupIngress)">
|
|
75
|
+
<span class="glyphicon glyphicon-plus-sign"></span> Add new
|
|
76
|
+
<firewall-label label="Firewall"></firewall-label> Rule
|
|
77
|
+
</button>
|
|
78
|
+
</td>
|
|
79
|
+
</tr>
|
|
80
|
+
</tfoot>
|
|
81
|
+
</table>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="form-group small" style="margin-top: 20px">
|
|
85
|
+
<div class="col-md-12">
|
|
86
|
+
<p>
|
|
87
|
+
<span ng-if="state.refreshingSecurityGroups"><span class="fa fa-sync-alt fa-spin"></span></span>
|
|
88
|
+
<firewall-label label="Firewalls"></firewall-label>
|
|
89
|
+
<span ng-if="!state.refreshingSecurityGroups">last refreshed {{ state.refreshTime | timestamp }}</span>
|
|
90
|
+
<span ng-if="state.refreshingSecurityGroups"> refreshing...</span>
|
|
91
|
+
</p>
|
|
92
|
+
<p>
|
|
93
|
+
If you're not finding a <firewall-label label="firewall"></firewall-label> that was recently added,
|
|
94
|
+
<a href ng-click="ctrl.refreshSecurityGroups()">click here</a> to refresh the list.
|
|
95
|
+
</p>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
<security-group-details-custom security-group-details="securityGroup" ctrl="ctrl" scope="self" />
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<div class="modal-body">
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div
|
|
5
|
+
class="col-md-12 well"
|
|
6
|
+
ng-class="{'alert-danger': form.securityGroupName.$error.validateUnique, 'alert-info': !form.securityGroupName.$error.validateUnique}"
|
|
7
|
+
>
|
|
8
|
+
<strong>Your <firewall-label label="firewall"></firewall-label> will be named:</strong>
|
|
9
|
+
<span ng-bind="namePreview"></span>
|
|
10
|
+
<help-field key="aws.securityGroup.name"></help-field>
|
|
11
|
+
<input
|
|
12
|
+
type="hidden"
|
|
13
|
+
class="form-control input-sm"
|
|
14
|
+
ng-model="securityGroup.name"
|
|
15
|
+
ng-model-options="{allowInvalid: true}"
|
|
16
|
+
validate-unique="{{allowDuplicateNames ? '' : 'existingSecurityGroupNames'}}"
|
|
17
|
+
validate-ignore-case="true"
|
|
18
|
+
name="securityGroupName"
|
|
19
|
+
ng-pattern="ctrl.namePattern"
|
|
20
|
+
trigger-validation="securityGroup.subnet"
|
|
21
|
+
required
|
|
22
|
+
/>
|
|
23
|
+
<validation-error
|
|
24
|
+
ng-if="form.securityGroupName.$error.validateUnique && securityGroup.credentials"
|
|
25
|
+
message="A {{ctrl.translate('firewall')}} named '{{namePreview}}' already exists in one or more of the selected regions. Use a unique stack and detail to create a new {{ctrl.translate('firewall')}}."
|
|
26
|
+
></validation-error>
|
|
27
|
+
<validation-error
|
|
28
|
+
ng-if="form.securityGroupName.$error.pattern"
|
|
29
|
+
message="Name must match {{ctrl.getCurrentNamePattern().toString()}}"
|
|
30
|
+
></validation-error>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-group">
|
|
34
|
+
<div class="col-md-3 sm-label-right">Account</div>
|
|
35
|
+
<div class="col-md-8">
|
|
36
|
+
<account-select-field
|
|
37
|
+
component="securityGroup"
|
|
38
|
+
field="credentials"
|
|
39
|
+
accounts="accounts"
|
|
40
|
+
provider="'aws'"
|
|
41
|
+
on-change="ctrl.accountUpdated()"
|
|
42
|
+
></account-select-field>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="form-group">
|
|
46
|
+
<div class="col-md-3 sm-label-right">Regions</div>
|
|
47
|
+
<div class="col-md-8">
|
|
48
|
+
<input type="hidden" ng-model="securityGroup.regions[0]" required />
|
|
49
|
+
<checklist
|
|
50
|
+
ng-if="securityGroup.credentials"
|
|
51
|
+
items="regions"
|
|
52
|
+
model="securityGroup.regions"
|
|
53
|
+
inline="true"
|
|
54
|
+
on-change="ctrl.regionUpdated()"
|
|
55
|
+
></checklist>
|
|
56
|
+
<p class="form-control-static" ng-if="!securityGroup.credentials">(Select an account)</p>
|
|
57
|
+
<validation-error
|
|
58
|
+
ng-if="state.regionError"
|
|
59
|
+
message="A security group cannot be cloned into a region it already exists in. Please deselect '{{state.originRegion}}' to clear this error."
|
|
60
|
+
></validation-error>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="form-group">
|
|
64
|
+
<div class="col-md-3 sm-label-right">Stack</div>
|
|
65
|
+
<div class="col-md-3">
|
|
66
|
+
<input
|
|
67
|
+
type="text"
|
|
68
|
+
class="form-control input-sm no-spel"
|
|
69
|
+
ng-model="securityGroup.stack"
|
|
70
|
+
ng-change="ctrl.updateName()"
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-md-2 sm-label-right">Detail</div>
|
|
74
|
+
<div class="col-md-3">
|
|
75
|
+
<input
|
|
76
|
+
type="text"
|
|
77
|
+
class="form-control input-sm no-spel"
|
|
78
|
+
ng-model="securityGroup.detail"
|
|
79
|
+
ng-change="ctrl.updateName()"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="form-group">
|
|
84
|
+
<div class="col-md-3 sm-label-right">Description (required)</div>
|
|
85
|
+
<div class="col-md-8">
|
|
86
|
+
<textarea required cols="2" class="form-control input-sm no-spel" ng-model="securityGroup.description">
|
|
87
|
+
</textarea>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="form-group">
|
|
91
|
+
<div class="col-md-3 sm-label-right">VPC <help-field key="aws.securityGroup.vpc"></help-field></div>
|
|
92
|
+
<div class="col-md-8">
|
|
93
|
+
<select
|
|
94
|
+
class="form-control input-sm"
|
|
95
|
+
ng-model="securityGroup.vpcId"
|
|
96
|
+
ng-change="ctrl.vpcUpdated()"
|
|
97
|
+
ng-if="securityGroup.regions.length"
|
|
98
|
+
>
|
|
99
|
+
<option value="" ng-if="!hideClassic">None (EC2 Classic)</option>
|
|
100
|
+
<option
|
|
101
|
+
ng-repeat="vpc in activeVpcs | orderBy: 'label'"
|
|
102
|
+
value="{{vpc.ids[0]}}"
|
|
103
|
+
ng-selected="securityGroup.vpcId === vpc.ids[0]"
|
|
104
|
+
>
|
|
105
|
+
{{vpc.label}}
|
|
106
|
+
</option>
|
|
107
|
+
<option ng-if="activeVpcs.length && deprecatedVpcs.length" disabled>---------------</option>
|
|
108
|
+
<option
|
|
109
|
+
ng-repeat="vpc in deprecatedVpcs | orderBy: 'label'"
|
|
110
|
+
value="{{vpc.ids[0]}}"
|
|
111
|
+
ng-selected="securityGroup.vpcId === vpc.ids[0]"
|
|
112
|
+
>
|
|
113
|
+
{{vpc.label}}
|
|
114
|
+
</option>
|
|
115
|
+
</select>
|
|
116
|
+
<p class="form-control-static" ng-if="!securityGroup.credentials">(Select an account)</p>
|
|
117
|
+
<p class="form-control-static" ng-if="securityGroup.credentials && !securityGroup.regions.length">
|
|
118
|
+
(Select at least one region)
|
|
119
|
+
</p>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<ng-form role="form" name="form" novalidate>
|
|
2
|
+
<v2-modal-wizard
|
|
3
|
+
heading="Edit {{securityGroup.name}}: {{securityGroup.region}}: {{securityGroup.accountName}}"
|
|
4
|
+
task-monitor="taskMonitor"
|
|
5
|
+
dismiss="$dismiss()"
|
|
6
|
+
>
|
|
7
|
+
<v2-wizard-page key="Ingress" label="Ingress" done="true">
|
|
8
|
+
<ng-include src="pages.ingress"></ng-include>
|
|
9
|
+
</v2-wizard-page>
|
|
10
|
+
</v2-modal-wizard>
|
|
11
|
+
<div class="modal-footer">
|
|
12
|
+
<button class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
13
|
+
<submit-button
|
|
14
|
+
is-disabled="form.$invalid || !wizard.isComplete() || state.submitting || !customComponentIsvalid"
|
|
15
|
+
submitting="state.submitting"
|
|
16
|
+
on-click="ctrl.upsert()"
|
|
17
|
+
is-new="state.isNew"
|
|
18
|
+
></submit-button>
|
|
19
|
+
</div>
|
|
20
|
+
</ng-form>
|