AWS Network firewall endpoint is not generated properly

I’m currently using typescript for CDKTF, the below lines

 const firewall = new DataAwsNetworkfirewallFirewall(this, "test", {
      name: "firewall"

seems to generate the following lines under


in which ["attachment[0].endpoint_id"] is incorrect, the correct way to access should be


Hi @waynechong1995 :wave:

This looks like a bug :bug:! Would you mind filing it in our repository over here?

I think that one might have to do with the underlying type of sync_states being a set, but the code you have should work :sweat_smile:

1 Like