Skip to content

Commit

Permalink
Merge branch 'fix/import-aws_lambda_alias-function_name' of ssh://git…
Browse files Browse the repository at this point in the history
…hub.com/gcrespi/terraform-provider-aws into gcrespi-fix/import-aws_lambda_alias-function_name
  • Loading branch information
bflad committed Jul 16, 2020
2 parents 76618b4 + 0cd6fbf commit 45acfa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_lambda_alias.go
Expand Up @@ -211,12 +211,12 @@ func resourceAwsLambdaAliasImport(d *schema.ResourceData, meta interface{}) ([]*

conn := meta.(*AWSClient).lambdaconn

getFunctionOutput, err := conn.GetFunction(&lambda.GetFunctionInput{FunctionName: &functionName})
_, err := conn.GetFunction(&lambda.GetFunctionInput{FunctionName: &functionName})
if err != nil {
return nil, err
}

d.Set("function_name", getFunctionOutput.Configuration.FunctionArn)
d.Set("function_name", functionName)
d.Set("name", alias)
return []*schema.ResourceData{d}, nil
}

0 comments on commit 45acfa7

Please sign in to comment.