Skip to content

Instantly share code, notes, and snippets.

@dvliman
Last active April 3, 2022 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvliman/2aa587f7b024615e4697da7b48a00120 to your computer and use it in GitHub Desktop.
Save dvliman/2aa587f7b024615e4697da7b48a00120 to your computer and use it in GitHub Desktop.
;; 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