-
I was trying to update lambda with recently created role. Code below: lambdaCli := lambda.NewFromConfig(cfg)
updateConfigIn := &lambda.UpdateFunctionConfigurationInput{
FunctionName: appARN,
Role: &roleARN,
Description: aws.String("Test Role"),
}
_, err := lambdaCli.UpdateFunctionConfiguration(ctx, updateConfigIn)
if err != nil {
log.Printf("Unable to associate lambda to the role: %v\n", err)
return err
} Getting below error, can someone tell me what's the root cause? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think it was because I was using published version ARN. Worked after using FunctionName. Closing it! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I think it was because I was using published version ARN. Worked after using FunctionName. Closing it!