nice-tailor-51650
04/06/2023, 6:46 PMstop_state = aws.ec2transitgateway.InstanceState("stop_state",
instance_id=new_ec2.id,
state="stopped")
terminate_state = aws.ec2transitgateway.InstanceState("terminate_state",
instance_id=new_ec2.id,
state="terminated")
terminate_state
does not work because there is no possible argument of "terminated" for the state
parameter.
however, i'm having a hard time finding a way to terminate an ec2 instance. there are no direct methods on the instance, and there are no arguments for when i created it that would allow to do thissparse-gold-10561
04/10/2023, 2:39 PMaws.ec2transitgateway
is for transit gateway configurations not EC2 instances.