Unable to create PVC for AWS storage in Openshift with message 'UnauthorizedOperation: You are not authorized to perform this operation'
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.