DataTerraformRemoteStateS3 get string returns '${TfToken[TOKEN.0]}'

Hey Guys,

When I’m trying to resolve the value from the output from the S3 remote state I have always ‘${TfToken[TOKEN.0]}’ which doesn’t mean anything to me. I can clearly see that a remote state exists with the particular s3 key and in this defined s3 bucket.

Could you give me some hints on where to start to debug it? I can see that proxy is resolved, but I don’t see what exactly it downloaded from the S3.

I figured out that resolving the value is going the same way as in vanilla terraform apply. The value will be correctly resolved when you will try to do the cdktf deploy.

Yep, remote state isn’t know at synth time as it relies on terraforms execution.