Explorar o código

feat: add ability to create a micro cache instance (#4026)

jose-fully-ported %!s(int64=2) %!d(string=hai) anos
pai
achega
19d28cdc3e

+ 14 - 0
dashboard/src/main/home/database-dashboard/forms/ElasticacheRedisForm.tsx

@@ -183,6 +183,20 @@ const ElasticacheRedisForm: React.FC<Props> = ({
                   Select an instance tier:
                 </Text>
                 <Spacer height="20px" />
+                <ResourceOption
+                  selected={tier === "cache.t4g.micro"}
+                  onClick={() => {
+                    setTier("cache.t4g.micro");
+                  }}
+                >
+                  <Container row>
+                    <Text>Micro</Text>
+                    <Spacer inline width="5px" />
+                    <Text color="helper">- 2 CPU</Text>
+                  </Container>
+                  <StorageTag>0.5 GB RAM</StorageTag>
+                </ResourceOption>
+                <Spacer height="20px" />
                 <ResourceOption
                   selected={tier === "cache.t4g.medium"}
                   onClick={() => {