#amazon-web-services #terragrunt
Вопрос:
Я запускаю Terragrunt, используя действия Github, но я продолжаю получать это сообщение об ошибке:
init: info: initializing Terragrunt configuration in ./prod/dev-env
init: error: failed to initialize Terragrunt configuration in ./ptage/dev-env
Remote state S3 bucket dev-env143-test-gitaction-us-east-1-tfstate does not exist or you don't have permissions to access it. Would you like Terragrunt to create it? (y/n) time=2021-08-18T22:44:53Z level=error msg=EOF
time=2021-08-18T22:44:53Z level=error msg=Unable to determine underlying exit code, so Terragrunt will exit with error code 1
Когда я установил disable_init = true, это работает нормально, но после этого появилось другое сообщение об ошибке:
plan: info: planning Terragrunt configuration in ./prod/dev-env
plan: error: failed to plan Terragrunt configuration in ./prod/dev-env
╷
│ Error: Backend initialization required, please run "terraform init"
│
│ Reason: Initial configuration of the requested backend "s3"
│
│ The "backend" is the interface that Terraform uses to store state,
│ perform operations, etc. If this message is showing up, it means that the
│ Terraform configuration you're using is using a custom configuration for
│ the Terraform backend.
│
│ Changes to backend configurations require reinitialization. This allows
│ Terraform to set up the new configuration, copy existing state, etc. Please
│ run
│ "terraform init" with either the "-reconfigure" or "-migrate-state" flags
│ to
│ use the current configuration.
│
│ If the change reason above is incorrect, please verify your configuration
│ hasn't changed and try again. At this point, no changes to your existing
│ configuration or state have been made.
Комментарии:
1. Вы должны показать свой код, который генерирует ошибку.