Ivan Galakhov 4 лет назад
Родитель
Сommit
fb5e85f6cd

+ 6 - 6
dashboard/src/main/home/provisioner/AWSFormSection.tsx

@@ -75,12 +75,12 @@ const machineTypeOptions = [
 ];
 
 const costMapping: Record<string, number> = {
-  "t2.medium": 100,
-  "t2.xlarge": 200,
-  "t2.2xlarge": 300,
-  "t3.medium": 400,
-  "t3.xlarge": 500,
-  "t3.2xlarge": 600,
+  "t2.medium": 200,
+  "t2.xlarge": 530,
+  "t2.2xlarge": 930,
+  "t3.medium": 190,
+  "t3.xlarge": 480,
+  "t3.2xlarge": 830,
 };
 
 // TODO: Consolidate across forms w/ HOC

+ 1 - 1
dashboard/src/main/home/provisioner/DOFormSection.tsx

@@ -281,7 +281,7 @@ export default class DOFormSection extends Component<PropsType, StateType> {
           <Helper>
             Estimated Cost:{" "}
             <CostHighlight highlight={this.props.highlightCosts}>
-              $COST/Month
+              $100/Month
             </CostHighlight>
           </Helper>
           <CheckboxRow

+ 1 - 1
dashboard/src/main/home/provisioner/GCPFormSection.tsx

@@ -392,7 +392,7 @@ class GCPFormSection extends Component<PropsType, StateType> {
           <Helper>
             Estimated Cost:{" "}
             <CostHighlight highlight={this.props.highlightCosts}>
-              $COST/Month
+              $200/Month
             </CostHighlight>
           </Helper>
           <CheckboxRow

+ 3 - 1
dashboard/src/main/home/provisioner/ProvisionerSettings.tsx

@@ -237,7 +237,9 @@ class NewProject extends Component<PropsType, StateType> {
                       });
                     }}
                   >
-                    $cost/Month
+                    {provider == "aws" && "$200/Month"}
+                    {provider == "gcp" && "$200/Month"}
+                    {provider == "do" && "$100/Month"}
                     <InfoTooltip text={"aa"} />
                   </CostSection>
                   <BlockDescription>Hosted in your own cloud.</BlockDescription>