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

Unauthorized on Azure AKS #61

Open
theobouwman opened this issue Dec 18, 2024 · 0 comments
Open

Unauthorized on Azure AKS #61

theobouwman opened this issue Dec 18, 2024 · 0 comments

Comments

@theobouwman
Copy link

when I run terraform apply -target="module.services" -var-file="init.tfvars" I get an unauthorized error:

╷
module.services.kubernetes_namespace.argo[0]: Creating...
module.services.kubernetes_secret.argo-jobs-azure-credentials[0]: Creating...
module.services.module.argo_events.kubernetes_namespace.argo_events: Creating...
module.services.kubernetes_service.metadata-service: Creating...
module.services.kubernetes_secret.default-jobs-azure-credentials: Creating...
module.services.kubernetes_service.metaflow-ui-backend-service: Creating...
module.services.kubernetes_service.metaflow-ui-static-service: Creating...
module.services.kubernetes_deployment.metaflow-ui-static-service: Creating...
module.services.kubernetes_deployment.metadata-service: Creating...
╷
│ Warning: Applied changes may be incomplete
│ 
│ The plan was created with the -target option in effect, so some changes requested in the configuration may have been ignored and the output values may not be fully updated. Run
│ the following command to verify that no other changes are pending:
│     terraform plan
│ 
│ Note that the -target option is not suitable for routine use, and is provided only for exceptional situations such as recovering from errors or mistakes, or when Terraform
│ specifically suggests to use it as part of an error message.
╵

│ Error: Unauthorized
│ 
│   with module.services.kubernetes_namespace.argo[0],
│   on services/argo.tf line 1, in resource "kubernetes_namespace" "argo":
│    1: resource "kubernetes_namespace" "argo" {
│ 
╵
╷
│ Error: Failed to create deployment: Unauthorized
│ 
│   with module.services.kubernetes_deployment.metadata-service,
│   on services/metadata_service.tf line 1, in resource "kubernetes_deployment" "metadata-service":
│    1: resource "kubernetes_deployment" "metadata-service" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.kubernetes_service.metadata-service,
│   on services/metadata_service.tf line 107, in resource "kubernetes_service" "metadata-service":
│  107: resource "kubernetes_service" "metadata-service" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.kubernetes_service.metaflow-ui-backend-service,
│   on services/metaflow_ui_backend_service.tf line 115, in resource "kubernetes_service" "metaflow-ui-backend-service":
│  115: resource "kubernetes_service" "metaflow-ui-backend-service" {
│ 
╵
╷
│ Error: Failed to create deployment: Unauthorized
│ 
│   with module.services.kubernetes_deployment.metaflow-ui-static-service,
│   on services/metaflow_ui_static_service.tf line 1, in resource "kubernetes_deployment" "metaflow-ui-static-service":
│    1: resource "kubernetes_deployment" "metaflow-ui-static-service" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.kubernetes_service.metaflow-ui-static-service,
│   on services/metaflow_ui_static_service.tf line 58, in resource "kubernetes_service" "metaflow-ui-static-service":
│   58: resource "kubernetes_service" "metaflow-ui-static-service" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.kubernetes_secret.argo-jobs-azure-credentials[0],
│   on services/secrets.tf line 1, in resource "kubernetes_secret" "argo-jobs-azure-credentials":
│    1: resource "kubernetes_secret" "argo-jobs-azure-credentials" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.kubernetes_secret.default-jobs-azure-credentials,
│   on services/secrets.tf line 12, in resource "kubernetes_secret" "default-jobs-azure-credentials":
│   12: resource "kubernetes_secret" "default-jobs-azure-credentials" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.services.module.argo_events.kubernetes_namespace.argo_events,
│   on ../../common/terraform/argo_events/main.tf line 148, in resource "kubernetes_namespace" "argo_events":
│  148: resource "kubernetes_namespace" "argo_events" {
│ 
╵
➜  terraform git:(master) ✗ 
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