tetratelabs / tetrate-service-bridge-sandbox

Deploy Tetrate Service Bridge Demo on Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE) and/or Elastic Kubernetes Service (EKS) using Terraform
Apache License 2.0
12 stars 10 forks source link

Fix AWS jumpbox regexp #237

Closed nacx closed 1 year ago

nacx commented 1 year ago

Fixes #236

This fixes the regular expression introduced in https://github.com/tetrateio/tetrate-service-bridge-sandbox/commit/d406667b515d2278d99d1b60e27e2e93e4088176.

I haven't tried deploying an AWS environment but verified that it works with different values here: https://regex101.com/r/wjzQ0N/2 @kurktchiev feel free to try it.

smarunich commented 1 year ago

thank you @nacx

verified using terraform console

> regex("\\w+-\\d+","bk-r161rc0p1-0-wrvs")
"r161rc0p1-0"
> regex(".+-\\d+","bk-r161rc0p1-0-wrvs")
"bk-r161rc0p1-0"
nacx commented 1 year ago

verified using terraform console

TIL!