Last active
April 3, 2022 22:15
-
-
Save dvliman/2aa587f7b024615e4697da7b48a00120 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; vm.clj | |
(aws/invoke state/ec2 | |
{:op :RunInstances | |
:request {:InstanceType "c5d.2xlarge" | |
:MaxCount 1 | |
:MinCount 1 | |
:SubnetId "subnet-id" | |
:ImageId "ami-id" | |
:SecurityGroupIds ["sg-id"] | |
:UserData (build-user-data class-id) | |
:TagSpecifications [{:ResourceType "instance" | |
:Tags [{:Key "Name" :Value (make-class-name class-id)}]}]}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment