[ERROR] An error occurred (InvalidIPAddress.InUse) when calling the RunInstances operation: Address XXX.XXX.XXX.XXX is in use #3385
|
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(): id = [] try: except: return { try: except ClientError as e: PLEASE YOUR HELP VALIDATING IF THE CODE IS WRONG OR YOU HAVE TO GENERATE A CHANGE |
Replies: 1 comment 2 replies
|
As mentioned in aws/aws-cli#7176 you can refer to this EC2 documentation for the
Have you tried disassociating that IP address from your EC2 instance? |
As mentioned in aws/aws-cli#7176 you can refer to this EC2 documentation for the
InvalidIPAddress.InUseerror: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.htmlHave you tried disassociating that IP address from your EC2 instance?