amazon web services - aws-sdk for ruby. How to assign a public ip address with instance? -


After reading completely, I do not see a way to associate a public IP address with an example when VPC Remained inside I do not want to manage elastic IP addresses, just good old random public IPs.

  example = ec2.instances.create (count: 1, image_id: IMAGE_ID, instance_type: INSTANCE_TYPE, key_name: anyone knows the easiest way to associate a public address on ec2 example creation Thanks?  

Thanks in advance.

.

From run_instances method, under : network_interfaces option, you specify the IP address of the public IP address to : associate_public_ip_address input parameter Can use They are.

FYI, you are using the old version of Ruby SDK, the ADS Core is concentrating more on one day in DDK, to specify the public IP address in the ADS SDK core. The above option can be found.


Comments