Pulling existing AWS configuration to Terraform

Is it possible to pull from AWS it’s configuration of lambda, vpc, roles, policies, s3 bucket (all to which that lambda is connected/triggered by) to terraform so that I can continue all through Visual Studio Code, and not through the AWS itself?

By now, I have set an s3 bucket, added a lambda that is triggered on uploads to that s3, RDS - postgres, VPC connection between those and have a role with some policies attached to that lambda. I don’t want to login to AWS and do the configurations through the panel, instead I want to do everything through terraform on VSC.