hello, question about pulumis ability to terminate...
# getting-started
n
hello, question about pulumis ability to terminate an ec2 instance....
Copy code
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")
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 this
s
Copy code
aws.ec2transitgateway
is for transit gateway configurations not EC2 instances.