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

expiration is not specified error #27

Open
mjmenger opened this issue Nov 17, 2021 · 0 comments
Open

expiration is not specified error #27

mjmenger opened this issue Nov 17, 2021 · 0 comments

Comments

@mjmenger
Copy link

When using the module with the example and environment-specific tfvars, the following error stopped the apply.

Error: Error creating API Credential: Invoking CustomAPI RPC: Doing custom RPC using Rest: Unsuccessful custom API POST on /public/namespaces/system/api_credentials, status code 400, body {
│   "code": 3,
│   "message": "expiration is not specified",
│   "details": [
│   ]
│ }, err %!s(<nil>)
│ 
│   with module.app-delivery-network.volterra_api_credential.this,
│   on .terraform/modules/app-delivery-network/vk8s_app.tf line 31, in resource "volterra_api_credential" "this":
│   31: resource "volterra_api_credential" "this" {

a manual edit of the module (included below) did not address the error.

resource "volterra_api_credential" "this" {
  name                  = substr(volterra_virtual_k8s.this.id, 1, 30)
  api_credential_type   = "KUBE_CONFIG"
  virtual_k8s_namespace = local.namespace
  virtual_k8s_name      = format("%s-vk8s", var.adn_name)
  expiry_days           = 10
  lifecycle {
    ignore_changes = [
      name
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant