View source: R/ec2_instance_create.R
ec2_instance_create
1 2 3 4 5 6 7 8 9 10 11 | ec2_instance_create(
ImageId = "ami-0996d3051b72b5b2c",
InstanceType = "t2.nano",
min = 1,
max = 1,
KeyName = Sys.getenv("AWS_PEM"),
SecurityGroupId = Sys.getenv("AWS_SECURITY_GROUP"),
InstanceStorage = 10,
DeviceName = "/dev/sda1",
user_data = NA
)
|
ImageId |
An aws ec2 id: i.e., 'ami-0174e69c12bae5410' |
InstanceType |
|
min |
min instances |
max |
max instances |
KeyName |
A .pem file to ssh |
SecurityGroupId |
SecurityGroupId of security group you have created in UI |
InstanceStorage |
Size of the box in gb |
DeviceName |
"/dev/sda1" |
user_data |
A shell script that runs on startup |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.