Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get ip from instance id boto3

import boto3
ec2 = boto3.client("ec2")
res = ec2.describe_instances(InstanceIds=['<instance-id>',])
print(res["Reservations"][0]["Instances"][0]["PublicIpAddress"])
Comment

PREVIOUS NEXT
Code Example
Python :: json list to dataframe python 
Python :: cv2.cvtcolor grayscale 
Python :: XLRDError: Excel xlsx file; not supported 
Python :: maximize window in selenium 
Python :: mac upgrade python to 3.8 
Python :: column dataframe to int 
Python :: how to get number of cores in python 
Python :: how to get micro symbol in python 
Python :: install serial python 
Python :: pip install error 
Python :: colab im show 
Python :: ctrl c exception python 
Python :: python gui size 
Python :: how to make a hidden file in python 
Python :: current datetime pandas 
Python :: use incognito in selenium webdriver 
Python :: flask code 
Python :: The specified device is not open or is not recognized by MCI. 
Python :: 8 ball responses list python 
Python :: record the amount of time ittales for code to run python 
Python :: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. 
Python :: how to convert list into csv in python 
Python :: pyspark date to week number 
Python :: change default python version mac 
Python :: python rotate pdf pages 
Python :: dataframe all companies except 
Python :: python read file line by line 
Python :: df sort values 
Python :: plt vertical line 
Python :: plt tight layout 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =