Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXE-4204 akamai_cloudaccess_key has no drift detection #579

Open
rolmo opened this issue Sep 16, 2024 · 1 comment
Open

DXE-4204 akamai_cloudaccess_key has no drift detection #579

rolmo opened this issue Sep 16, 2024 · 1 comment

Comments

@rolmo
Copy link

rolmo commented Sep 16, 2024

Hi there,

If I create an AWS access key with the Terraform resource akamai_cloudaccess_key and later delete its key version (via API or UI), Terraform does not recognise this and does not restore the key with a new apply.

Terraform and Akamai Terraform Provider Versions

  • Terraform: v1.9.5
  • Akamai provider: 6.4

Affected Resource(s)

  • akamai_cloudaccess_key

Terraform Configuration Files

resource "akamai_cloudaccess_key" "test" {
  access_key_name       = "test"
  authentication_method = "AWS4_HMAC_SHA256"
  group_id              = 12345
  contract_id           = "G-XXXXX"
  network_configuration = {
    security_network = "STANDARD_TLS"
  }
  credentials_a = {
    cloud_access_key_id     = var.access_key_id
    cloud_secret_access_key = var.secret_access_key
    primary_key             = false
  }
}

Expected Behavior

Each "terraform apply" run should ensure, that there is a key version ("credentials_a").

Actual Behavior

When the key is deleted (via UI or API), terraform does not restore the key.

Steps to Reproduce

  1. Create the key withterraform apply
  2. Delete the key in the UI
  3. Run terraform apply again
@mimazaka
Copy link
Contributor

Hi @rolmo,

We will investigate this issue and come back to you with this topic.

Regards,
Michał

@lsadlon lsadlon changed the title akamai_cloudaccess_key has no drift detection DXE-4204 akamai_cloudaccess_key has no drift detection Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants