EC2 fleets made easy
forge-test-example
.ACCOUNT_ID
with your AWS account id.forge-example
.
aws configure --profile forge-example
test
.Other type of secret
The secret name will be used in the environment yaml in the parameter “forge_pem_secret”.
encoded_pem
and the value is the base64 encrypted key pair.forge-pem
user_data
parameter in the environment yaml, you can specify what the default user data script should be if the user does not provide one.echo "$(cat /root/.ssh/authorized_keys | sed 's/^.*ssh-rsa/ssh-rsa/')" > /root/.ssh/authorized_keys
is needed in all user data scripts because Forge runs all commands as root.forge configure -h
Configure env yaml and place it in /home/ec2-user/.local/lib/python3.7/site-packages/forge/config/
mkdir -p /home/ec2-user/.local/lib/python3.7/site-packages/forge/config/example
cp example.yaml single.sh /home/ec2-user/.local/lib/python3.7/site-packages/forge/config/example/
forge create --yaml single_example.yaml --user_data single_ud.sh
. Once the instance is created the hourly price will be printed.forge rsync --yaml single_example.yaml
forge run --yaml single_example.yaml
forge destroy --yaml single_example.yaml
forge engine --yaml single_example.yaml --user_data single_ud.sh
.