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

permission errors seems to return an invalid result object on apply #275

Closed
blakepettersson opened this issue Dec 11, 2024 · 0 comments · Fixed by #281
Closed

permission errors seems to return an invalid result object on apply #275

blakepettersson opened this issue Dec 11, 2024 · 0 comments · Fixed by #281
Assignees

Comments

@blakepettersson
Copy link
Contributor

resource "akp_cluster" "main" {
  instance_id = akp_instance.main.id
  name        = module.eks.cluster_name
  namespace   = "akuity"
  annotations = {
    managed-namespace = "akuity"
  }
  spec = {
    namespace_scoped = true
    data = {
      size                                = "small"
      eks_addon_enabled                   = true
      multi_cluster_k8s_dashboard_enabled = local.multi_cluster_k8s_dashboard_enabled
      app_replication                     = true
    }
  }

  kube_config = {
    host                   = module.eks.cluster_endpoint
    token                  = data.aws_eks_cluster_auth.main.token
    cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
  }

  lifecycle {
    ignore_changes = [
      kube_config.token,
    ]
  }
}

If for whatever reason some kind of connection error happens, we get


│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.id. All values must be known after
│ apply, so this is always a bug in the provider and should be reported in
│ the provider's own repository. OpenTofu will still save the other known
│ object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.labels. All values must be known
│ after apply, so this is always a bug in the provider and should be reported
│ in the provider's own repository. OpenTofu will still save the other known
│ object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.spec.data.auto_upgrade_disabled.
│ All values must be known after apply, so this is always a bug in the
│ provider and should be reported in the provider's own repository. OpenTofu
│ will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for
│ module.eks_cluster.akp_cluster.main.spec.data.datadog_annotations_enabled.
│ All values must be known after apply, so this is always a bug in the
│ provider and should be reported in the provider's own repository. OpenTofu
│ will still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.spec.data.kustomization. All values
│ must be known after apply, so this is always a bug in the provider and
│ should be reported in the provider's own repository. OpenTofu will still
│ save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.spec.data.redis_tunneling. All
│ values must be known after apply, so this is always a bug in the provider
│ and should be reported in the provider's own repository. OpenTofu will
│ still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.spec.data.target_version. All
│ values must be known after apply, so this is always a bug in the provider
│ and should be reported in the provider's own repository. OpenTofu will
│ still save the other known object values in the state.
╵
╷
│ Error: Provider returned invalid result object after apply
│ 
│ After the apply operation, the provider still indicated an unknown value
│ for module.eks_cluster.akp_cluster.main.spec.description. All values must
│ be known after apply, so this is always a bug in the provider and should be
│ reported in the provider's own repository. OpenTofu will still save the
│ other known object values in the state.
╵
╷
│ Error: Client Error
│ 
│   with module.eks_cluster.akp_cluster.main,
│   on .terraform/modules/eks_cluster/modules/eks-cluster/akuity_cluster.tf line 33, in resource "akp_cluster" "main":
│   33: resource "akp_cluster" "main" {
│ 
│ unable to apply manifests: Unable to check cluster reconciliation status:
│ rpc error: code = PermissionDenied desc = Access to instance  is denied
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

Successfully merging a pull request may close this issue.

2 participants