I have existing AWS ClinetVPN and currently I'm adding route to this ClientVPN manually using AWS console.
I want to terraform this so I can add any new routes to the exiting AWS ClientVPN using terraform.
How can I use do this by Terraform? I dont have to create any new resources as all the resources already exist.
Now that I have imported the resources
I need to import one by one each route from clientVPN and add the definition in main.tf file before running terraform plan
In this way, if I have 20 route then I have to add 20 resource entry in main.tf file. Is there a way, I can just write only one entry and terraform will pick this maybe by using variable? I'm not sure, please help me with this.
You either have to import the required, pre-existing resources to TF, or pass values for client_vpn_endpoint_id
and target_vpc_subnet_id
as input parameters to your TF script.