# NOT RUN {
# This example creates an AMI from the specified instance and adds an EBS
# volume with the device name /dev/sdh and an instance store volume with
# the device name /dev/sdc.
# }
# NOT RUN {
svc$create_image(
BlockDeviceMappings = list(
list(
DeviceName = "/dev/sdh",
Ebs = list(
VolumeSize = "100"
)
),
list(
DeviceName = "/dev/sdc",
VirtualName = "ephemeral1"
)
),
Description = "An AMI for my server",
InstanceId = "i-1234567890abcdef0",
Name = "My server",
NoReboot = TRUE
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab