broad-zoo-34077
02/06/2023, 1:38 PMlittle-author-61621
aws_lambda_function
or the aws_lambda_provisioned_concurrency_config
?stocky-magazine-90066
02/06/2023, 2:06 PMaws_lambda_provisioned_concurrency_config
as a new resource, but the resource needs some information from aws_lambda_function
which I thought I could do via the reference attributes.stocky-magazine-90066
02/06/2023, 2:06 PMstocky-magazine-90066
02/06/2023, 2:12 PMlittle-author-61621
aws_lambda_provisioned_concurrency_config
resource:
ReferenceAttributes: []string{"function_name"}
And then this on the aws_lambda_function
resource so it knows to use function_name
as an identifer:
CustomRefIDFunc: func(d *schema.ResourceData) []string {
name := d.Get("function_name").String()
if name != "" {
return []string{name}
}
return nil
}
stocky-magazine-90066
02/06/2023, 2:16 PMlittle-author-61621