diff --git a/docs/developer/scripts/README.md b/docs/developer/scripts/README.md index f899133ffa11b3549475c0f7a0c91eb2531c89d7..afd59630cd5159b47c60ce353e407f88f03a2a89 100644 --- a/docs/developer/scripts/README.md +++ b/docs/developer/scripts/README.md @@ -32,8 +32,12 @@ The instance will automatically terminate in the middle of the night at 08:00 UT ``` 1. Install jq - Follow jq installation instructions for your workstation operating system. - <https://stedolan.github.io/jq/download/> + Follow jq installation instructions for your workstation operating system. + https://stedolan.github.io/jq/download/ + + +1. Mac users will need to install the GNU version of the sed command. + https://medium.com/@bramblexu/install-gnu-sed-on-mac-os-and-set-it-as-default-7c17ef1b8f64 # Usage @@ -54,7 +58,7 @@ k3d-dev.sh -b -p -m -d -h # Troubleshooting -1. If you are on a Mac insure that you have GNU sed command installed. Otherwise you will see this error +1. If you are on a Mac insure that you have GNU sed command installed. Otherwise you will see this error and the kubeconfig will not be updated with the IP from the instance. ``` copy kubeconfig config 100% 3019 72.9KB/s 00:00 diff --git a/docs/developer/scripts/k3d-dev.sh b/docs/developer/scripts/k3d-dev.sh index ffb80e35c5eb0cc4ef753313154a0f8ced82585e..328d39f3dac08dda2dd138bdbf0f41257d947723 100755 --- a/docs/developer/scripts/k3d-dev.sh +++ b/docs/developer/scripts/k3d-dev.sh @@ -151,9 +151,12 @@ InstanceType="${InstSize}" VolumeSize=120 # Lookup the image name to find the latest version -echo -n Retrieving latest image ID matching ${AMIName} ... -ImageId=$(aws ec2 describe-images --output json --no-cli-pager --filters "Name=name,Values=${AMIName}" --query "reverse(sort_by(Images, &CreationDate))[:1].ImageId" --output text) -echo done +# echo -n Retrieving latest image ID matching ${AMIName} ... +# ImageId=$(aws ec2 describe-images --output json --no-cli-pager --filters "Name=name,Values=${AMIName}" --query "reverse(sort_by(Images, &CreationDate))[:1].ImageId" --output text) +#echo done +# Hardcode the latest image instead of searching for it to avoid unexpected changes +echo Using AMI image id ami-84556de5 +ImageId=ami-84556de5 # Create the launch spec echo -n Creating launch_spec.json ...