Greetings I am looking for a temporal resource during apply
E.g. I would like to:
- create a keypair
- create ec2 with it
- provision ec2 using the key
- destroy keypair
Is it somehow possible?
Greetings I am looking for a temporal resource during apply
E.g. I would like to:
Is it somehow possible?
I don’t think this is all possible during an apply. Terraform being declarative means you describe the desired state so an apply and a destroy are two different API calls. The way you have described it in this post sounds imperative which goes against the nature of Terraform