UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 95564b8c authored by kevin.wilder's avatar kevin.wilder Committed by Micah Nagel
Browse files

hardcode image id instead of searching for it

parent bc8cbc3a
No related branches found
No related tags found
1 merge request!987hardcode image id instead of searching for it
......@@ -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
......
......@@ -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 ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment