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?ambitious-forest-23664
04/14/2022, 9:38 AMnew 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,
});
victorious-church-57397
04/14/2022, 9:39 AMvictorious-church-57397
04/14/2022, 9:45 AMambitious-forest-23664
04/14/2022, 9:54 AMambitious-forest-23664
04/14/2022, 9:54 AMambitious-forest-23664
04/14/2022, 9:55 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 AMambitious-forest-23664
04/14/2022, 10:03 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 PMvictorious-church-57397
04/14/2022, 2:43 PM