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 = NA,
  InstanceType = "t2.nano",
  min = 1,
  max = 1,
  KeyName = NA,
  SecurityGroupId = NA,
  InstanceStorage = 50,
  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/awsR documentation built on Sept. 26, 2020, 8:28 a.m.