2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
I get the same error in the same region, and I'm wondering if it's because I'm trying it with a brand new instance that isn't registered with an OpsWorks stack (and I'm not able to register a new stack because OpsWorks is EOL https://docs.aws.amazon.com/opsworks/latest/userguide/stacks-eol-faqs.html ).
Is your instance registered to an existing OpsWorks stack?
Using aws ec2
rather than aws opsworks
is fine using the same instance and EIP, but I'm guessing you have a good reason for wanting to use OpsWorks.
$ aws opsworks --region ap-southeast-2 associate-elastic-ip --instance-id i-0635149fxyzxyzxyz --elastic-ip 13.x.y.z
An error occurred (ResourceNotFoundException) when calling the AssociateElasticIp operation: Unable to find elastic ip with ID 13.x.y.z
$ aws ec2 associate-address --region ap-southeast-2 --instance-id i-0635149fxyzxyzxyz --public-ip 13.x.y.z
{
"AssociationId": "eipassoc-0f5ceba5xyzxyzxyz"
}
$
0
Steve, While you didn't solve the opsworks problem, you did show me that I overlooked the obvious solution in ec2 associate-address. So thanks very much.
jon
con risposta 10 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa