Skip to content

Instantly share code, notes, and snippets.

@bassg0navy
Created May 16, 2024 00:54
Show Gist options
  • Save bassg0navy/197f8ff99d019dead55c0e6d1641c2c0 to your computer and use it in GitHub Desktop.
Save bassg0navy/197f8ff99d019dead55c0e6d1641c2c0 to your computer and use it in GitHub Desktop.
Terraform apply output showing 404 error attempting creation of vault master encryption key
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.vault.oci_kms_key.master_key: Creating...
│ Error: 404-NotAuthorizedOrNotFound, Authorization failed or requested resource not found.
│ Suggestion: Either the resource has been deleted or service Kms Key need policy to access this resource. Policy reference: https://docs.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/kms_key
│ API Reference: https://docs.oracle.com/iaas/api/#/en/key/release/Key/CreateKey
│ Request Target: POST https://kms.us-ashburn-1.oraclecloud.com/20180608/keys
│ Provider version: 5.41.0, released on 2024-05-11.
│ Service: Kms Key
│ Operation Name: CreateKey
│ OPC request ID: 90f47e284c86ad77c59f36ec363ff2cd/83219311E16D271A8BF4165311960323/14F76810A1ACFA61442417EDECA21A86
│ with module.vault.oci_kms_key.master_key,
│ on modules/vault/main.tf line 23, in resource "oci_kms_key" "master_key":
│ 23: resource "oci_kms_key" "master_key" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment