How to create a data source using Terraform

Finally, I am able to create now using the following --
> 
> resource "aws_quicksight_data_source" "rdspg" {
>     data_source_id = "example_id"
>     name = "1234"
>     vpc_connection_properties { vpc_connection_arn =  "arn:aws:quicksight:us-east-1:123456789012:vpcConnection/test-01" }
>     parameters {
>            rds {
>                 database = "testing"
>                 instance_id = "dadada"
>              }
>              }
>     credentials {
>           credential_pair {
>                  username = "postgres"
>                  password = "1234"
>             }
>     }         
> type = "POSTGRESQL"
> }
1 Like