ambitious-forest-23664
04/14/2022, 9:36 AMlambda:InvokeFunctionUrl
) and I don’t know how to add it because I don’t know how to add the necessary condition using the classic aws.lambda.Permission
resource. Any help?new aws.lambda.Permission('hello', {
action: 'lambda:InvokeFunctionUrl',
principal: '*',
function: <ze-function>,
})
this is lacking a conditionvictorious-church-57397
04/14/2022, 9:39 AMnew lambda.Permission(`lambda-permission`, {
action: 'lambda:InvokeFunction',
function: lambdaFunction.arn,
principal: '*',
sourceArn: resource.arn,
});
ambitious-forest-23664
04/14/2022, 9:54 AMConditions
{
"StringEquals": {
"lambda:FunctionUrlAuthType": "NONE"
}
}
to the permissionvictorious-church-57397
04/14/2022, 9:56 AMpulumi import
command to pull the resource in and generate the code for me to create it, sorry i haven’t personally done lambda url perms beforeambitious-forest-23664
04/14/2022, 10:02 AM* Error unmarshalling Lambda policy: json: cannot unmarshal string into Go struct field PolicyStatement.Statement.Principal of type map[string]string
victorious-church-57397
04/14/2022, 2:42 PM