Is it possible to create a postgresql provider fro...
# general
a
Is it possible to create a postgresql provider from the output of a aws rdsInstance? im struggling with this:
Copy code
pgqlProvider := postgresql.Endpoint.ApplyT(func(x string) (*pgql.Provider, error) {
			host := strings.Split(x, ":")[0]
			port, err := strconv.Atoi(strings.Split(x, ":")[1])
			if err != nil {
				return nil, err
			}
			return pgql.NewProvider(ctx, "psql", &pgql.ProviderArgs{
				Database:  kratosDbName,
				Username:  dbUsername,
				Password:  password.Result,
				Superuser: pulumi.Bool(true),
				Host:      pulumi.String(host),
				Port:      <http://pulumi.Int|pulumi.Int>(port),
			})
		})
because this produces a
pulumi.Output
which
does not implement pulumi.ResourceOption (missing applyResourceOption method)