https://pulumi.com logo
#aws
Title
# aws
b

bulky-policeman-29913

11/05/2021, 5:07 PM
I am trying to use the new native provider in typescript and getting an error for unknown field statement. I am just trying to create an IAM role here:
Copy code
const lambdaRole = new aws_native.iam.Role(`${resourcePrefix}-myrole`, {
    assumeRolePolicyDocument: { 
        version: '2012-10-17',
        statement: [{
                effect: 'Allow',
                principal: {
                    service: '<http://lambda.amazonaws.com|lambda.amazonaws.com>'
                },
                action: [
                    'sts:AssumeRole'
                ]
        }]
    },
    path: '/'
});