Why can I not use aws_lambda_function datasource inside aws_lambda_alias routing_config?
问题 I am experimenting with a blue/green deployment setup for lambdas using terraform and lambda aliases. I am trying to automatically retrieve the previously deployed version of the lambda by using the aws_lambda_function data source and using the value inside the routing_config => additional_version_weights. This would allow me to set up a traffic split between the previously deployed version and the version that has just been deployed. However, I have run into 2 errors I don't quite understand