❓ General Issue
The Question
I need create ALB with lambda , when I create new Lambda , I use add_permission give lambda resource policy , it's work, but when I use from_function_arn load exits lambda , get:
"No child with id: 'InvokeServicePrincipal(elasticloadbalancing.amazonaws.com)'" error
# create new lambda , it's work
# my_lambda = _lambda.Function(
# self, 'HelloHandler',
# runtime=_lambda.Runtime.PYTHON_3_7,
# code=_lambda.Code.asset('lambda'),
# handler='hello.handler',
# )
#load exits lambda not work
my_lambda = _lambda.Function.from_function_arn(self,"HelloHandler","arn:aws:lambda:us-east-1:596030579944:function:hello-envoy-lambda")
Environment
- CDK CLI Version: 1.45.0 (build 0cfab15)
- Module Version: 1.45.0
- Node.js Version: 12.4
- OS: OSX
- Language (Version): Python (3.7.3)
Other information
jsii.errors.JSIIError: No child with id: 'InvokeServicePrincipal(elasticloadbalancing.amazonaws.com)'
❓ General Issue
The Question
I need create ALB with lambda , when I create new Lambda , I use
add_permissiongive lambda resource policy , it's work, but when I usefrom_function_arnload exits lambda , get:"No child with id: 'InvokeServicePrincipal(elasticloadbalancing.amazonaws.com)'" errorEnvironment
Other information