Unable to create PVC for AWS storage in Openshift with message 'UnauthorizedOperation: You are not authorized to perform this operation'

Solution Unverified - Updated -

Issue

  • When attempting to create a PVC in OCP on AWS, the below errors in the events are shown:

    Warning         ProvisioningFailed      Failed to provision volume with StorageClass "gp2": UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx status code: 403, request id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    
    (combined from similar events): failed to provision volume with StorageClass "gp2": rpc error: code = Internal desc = Could not create volume "pvc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx": could not create volume in EC2: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

Environment

  • Red Hat Openshift Container Platform (RHOCP)
    • 3.11
    • 4
  • Amazon Web Services (AWS)
  • Persistent Volume Claim (PVC)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content