Creating a Secret Fails Due to Authorization or Resource Not Found

Use troubleshooting information to resolve authorization issues when creating a secret.

There are several reasons why you might receive the following error when creating a secret, "Either you don't have permission to create this resource or the vault where you want to create it doesn't exist."

You might not have the required permissions. You need permissions for the vault where you want to create the secret and for the master encryption key that you want to use to encrypt the secret. If there's no policy that grants you the permissions you need, then an administrator must create one for you or add you to a group that's already named in a policy. If you're an administrator, refer to the following example policy:

To write more restrictive policies, see Details for the Vault Service. If you're new to policies, see Getting Started with Policies and Common Policies.

It's possible that the vault doesn't exist. You can only create a secret in a vault that exists and only when you have permissions to do so.