Risoluzione dei problemi di distribuzione del cluster utilizzando Terraform - AWS ParallelCluster

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

Risoluzione dei problemi di distribuzione del cluster utilizzando Terraform

Questa sezione è rilevante per i cluster che sono stati distribuiti utilizzando Terraform.

ParallelCluster API non trovata

La pianificazione potrebbe fallire perché l' ParallelCluster API non può essere trovata. In questo caso, l'errore restituito sarebbe qualcosa del tipo:

Planning failed. Terraform encountered an error while generating this plan. ╷ │ Error: Unable to retrieve ParallelCluster API cloudformation stack. │ │ with provider["registry.terraform.io/aws-tf/aws-parallelcluster"], │ on providers.tf line 6, in provider "aws-parallelcluster": │ 6: provider "aws-parallelcluster" { │ │ operation error CloudFormation: DescribeStacks, https response error StatusCode: 400, RequestID: REQUEST_ID, api error ValidationError: Stack with id PCAPI_STACK_NAME does not exist

Per risolvere questo errore, distribuisci l' ParallelCluster API nell'account in cui verranno creati i cluster. Per informazioni, consulta Creare un cluster con Terraform.

Utente non autorizzato a chiamare l'API ParallelCluster

La pianificazione potrebbe fallire perché il ruolo/utente IAM che hai assunto per implementare il tuo progetto Terraform non dispone delle autorizzazioni per interagire con l'API. ParallelCluster In questo caso, l'errore restituito sarebbe qualcosa del tipo:

Planning failed. Terraform encountered an error while generating this plan. │ Error: 403 Forbidden │ │ with module.parallelcluster_clusters.module.clusters[0].pcluster_cluster.managed_configs["DemoCluster01"], │ on .terraform/modules/parallelcluster_clusters/modules/clusters/main.tf line 35, in resource "pcluster_cluster" "managed_configs": │ 35: resource "pcluster_cluster" "managed_configs" { │ │ {{"Message":"User: USER_ARN is not authorized to perform: execute-api:Invoke on resource: PC_API_REST_RESOURCE with an explicit deny"} │ }

Per risolvere questo errore, configura il ParallelCluster provider in modo che utilizzi il ruolo ParallelCluster API per interagire con l'API.

provider "aws-parallelcluster" { region = var.region profile = var.profile api_stack_name = var.api_stack_name **use_user_role** **= true** }