ec2_instance_create: ec2_instance_create

Description Usage Arguments

View source: R/ec2_instance_create.R

Description

ec2_instance_create

Usage

 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
)

Arguments

ImageId

An aws ec2 id: i.e., 'ami-0174e69c12bae5410'

InstanceType

See https://aws.amazon.com/ec2/instance-types/

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


fdrennan/biggr2 documentation built on March 6, 2021, 7:13 a.m.