我正在完成本教程并设法设置一切正常。
在排队计划时,我得到以下与变量相关的错误并且无法深入了解它。
任何人对如何推进这个有任何想法?谢谢
希望这将是一个很好的简单的启动和运行!
Configuring remote state backend...
Initializing Terraform configuration...
Warning: Value for undeclared variable
The root module does not declare a variable named "tag_user_name" but a value
was found in file "/terraform/terraform.tfvars". To use this value, add a
"variable" block to the configuration.
Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization, use TF_VAR_...
environment variables to set these instead.
Error: No value for required variable
on variables.tf line 6:
6: variable "aws_access_key_id" {
The root module input variable "aws_access_key_id" is not set, and has no
default value. Use a -var or -var-file command line argument to provide a
value for this variable.
Error: No value for required variable
on variables.tf line 10:
10: variable "aws_secret_access_key" {
The root module input variable "aws_secret_access_key" is not set, and has no
default value. Use a -var or -var-file command line argument to provide a
value for this variable.