[ERROR] An error occurred (InvalidIPAddress.InUse) when calling the RunInstances operation: Address XXX.XXX.XXX.XXX is in use. #7176
-
I HAVE AN AUTOMATION THROUGH LAMBDAS FOR THE CREATION OF EC2, IT IS GENERATING ME THE FOLLOWING ERROR: [ERROR] An error occurred (InvalidIPAddress.InUse) when calling the RunInstances operation: Address 10.xxx.xxx.xxx is in use. THE CODE IS THE FOLLOWING IN PYTON 3.9: ` KEY = 'REGION' from_zone = tz.gettz('UTC') dateFormat = now.astimezone(to_zone).strftime("%X") def get_ami():
def get_resources():
def create_ec2(id_ami,instance_type,sg_id,subnet_id,private_ip,ec2_name):
THE LAMBDA FUNCTION WAS WORKING WELL 2 WEEKS AGO, BUT SINCE THEN IT IS GENERATING THE ERROR WHEN IT IS RUN, IT CREATES THE EC2 WITH ALL THE ATTRIBUTES, BUT IT SEND ERROR. PLEASE YOUR HELP VALIDATING IF THE CODE IS WRONG OR YOU HAVE TO GENERATE A CHANGE |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @juanhurtado00, it looks like this issue relates to boto3 rather than the AWS CLI, in which case the appropriate place for this is here: https://github.com/boto/boto3/discussions But I can refer you to this EC2 documentation for the
|
Beta Was this translation helpful? Give feedback.
Hi @juanhurtado00, it looks like this issue relates to boto3 rather than the AWS CLI, in which case the appropriate place for this is here: https://github.com/boto/boto3/discussions
But I can refer you to this EC2 documentation for the
InvalidIPAddress.InUse
error: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html