Hi Team, we are upgrading from terraform 0.11 to 1.0.0.While doing plan we are getting the below error. The lambda function is also present. But it is failing to get that. Role arns are all unchanged .Can you please help me on it.
Error: error getting Lambda Function (sale-dev-lmb-agsrq): ResourceNotFoundException: Function not found: arn:aws:lambda:eu-central-1:324566554890:function:sale-dev-lmb-agsrq
{
RespMetadata: {
StatusCode: 404,
RequestID: "30e3390c-f52f-4bf5-9155-76039351b8a8"
},
Message_: "Function not found: arn:aws:lambda:eu-central-1:324566554890:function:sale-dev-lmb-agsrq",
Type: "User"
}
with data.aws_lambda_function.AgentSendRequest,
on templates.tf line 1, in data "aws_lambda_function" "AgentSendRequest":
1: data "aws_lambda_function" "AgentSendRequest" {