nice-tailor-5165004/06/2023, 6:46 PM
stop_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")
does not work because there is no possible argument of "terminated" for the
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 this
sparse-gold-1056104/10/2023, 2:39 PM
is for transit gateway configurations not EC2 instances.