# NOT RUN {
# This example modifies the specified subnet so that all instances
# launched into this subnet are assigned a public IP address.
# }
# NOT RUN {
svc$modify_subnet_attribute(
MapPublicIpOnLaunch = list(
Value = TRUE
),
SubnetId = "subnet-1a2b3c4d"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab