Skip to content

Commit

Permalink
set qualified_arn value
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Keith authored and YakDriver committed Feb 18, 2021
1 parent f968dc4 commit b64f075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/resource_aws_lambda_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,9 @@ func resourceAwsLambdaFunctionUpdate(d *schema.ResourceData, meta interface{}) e
}

// Return the newly published values as the read is eventually consistent
d.Set("arn", result.FunctionArn)
// Return the newly published values as the read is eventually consistent
re := regexp.MustCompile(`:[0-9]+$`)
d.Set("arn", re.ReplaceAllString(*result.FunctionArn, ""))
d.Set("description", result.Description)
d.Set("handler", result.Handler)
d.Set("memory_size", result.MemorySize)
Expand Down

0 comments on commit b64f075

Please sign in to comment.