https://pulumi.com logo
Title
b

brash-book-79719

03/23/2023, 7:01 PM
I’m running into an issue creating a role with the AWS Native. The code I’m using is:
const clusterRole = new aws_native.iam.Role("clusterRole", {
  assumeRolePolicyDocument: {
  statements: [{
      effect: "Allow",
      principals: [{
          type: "Service",
          identifiers: ["<http://eks.amazonaws.com|eks.amazonaws.com>"],
      }],
      actions: ["sts:AssumeRole"],
  }],
  managedPolicyArns: [
    "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy",
    "arn:aws:iam::aws:policy/AmazonEKSVPCResourceController",
  ]
}});
And I’m getting the error:
aws-native:iam:Role (clusterRole):
    error: resource partially created but read failed. read error: reading resource state: operation error CloudControl: GetResource, https response error StatusCode: 400, RequestID: ced5d4bf-8b4a-4987-a829-5d1a8ff2b2d5, ResourceNotFoundException: AWS::IAM::Role Handler returned status FAILED: The role with name clusterRole-88a77e3 cannot be found. (Service: Iam, Status Code: 404, Request ID: f31de7e3-6ebd-4082-b42b-4d0aa68d664b) (HandlerErrorCode: NotFound, RequestToken: 8c119a29-e230-499c-90e8-bb99b44bacc0), create error: operation CREATE failed with "InvalidRequest": Unknown field managedPolicyArns (Service: Iam, Status Code: 400, Request ID: 4fbfb53c-1468-4390-9503-1c624f6012ec)
Is
managedPolicyArns
not supported?