Replies: 2 comments
-
Hi @b4nganto, Setting deplyment remote-state environment variables
complete example
|
Beta Was this translation helpful? Give feedback.
-
You can see a simple example of a vpc stack : |
Beta Was this translation helpful? Give feedback.
-
When try to deploy stack with terraform 1.1.6, an error appear "No inventory was parsed, only implicit localhost is available", and then the deploy failed.
Terraform Version
1.1.6
SLD Version
2.1.1
Crash Output
No inventory was parsed, only implicit localhost is available
Debug Output
[2022-03-03 11:23:52,446: INFO/ForkPoolWorker-1] create config a-hismanto in /home/sld/.aws/config done
[2022-03-03 11:23:52,447: INFO/ForkPoolWorker-1] create credentials a-hismanto in /home/sld/.aws/credentials done
[2022-03-03 11:23:52,858: WARNING/ForkPoolWorker-1] [WARNING]: No inventory was parsed, only implicit localhost is available
[2022-03-03 11:24:07,533: WARNING/ForkPoolWorker-1] [WARNING]: Failed to list Terraform workspaces: workspaces not supported
[2022-03-03 11:24:07,534: WARNING/ForkPoolWorker-1] localhost | FAILED! => {
"changed": false,
"cmd": "/tmp/1.1.6/terraform destroy -no-color -auto-approve -lock=true -var-file aws_vpc.tfvars.json",
"msg": "\nError: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.\n\nPlease see https://registry.terraform.io/providers/hashicorp/aws\nfor more information about providing credentials.\n\nError: NoCredentialProviders: no valid providers in chain\ncaused by: EnvAccessKeyNotFound: failed to find credentials in the environment.\nSharedCredsLoad: failed to load profile, .\nEC2RoleRequestError: no EC2 instance role found\ncaused by: EC2MetadataError: failed to make EC2Metadata request\n404 Not Found\n\nThe resource could not be found.\n\n \n\tstatus code: 404, request id: \n\n\n with provider["registry.terraform.io/hashicorp/aws"],\n on provider.tf line 1, in provider "aws":\n 1: provider "aws" {",
"rc": 1,
"stderr": "\nError: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.\n\nPlease see https://registry.terraform.io/providers/hashicorp/aws\nfor more information about providing credentials.\n\nError: NoCredentialProviders: no valid providers in chain\ncaused by: EnvAccessKeyNotFound: failed to find credentials in the environment.\nSharedCredsLoad: failed to load profile, .\nEC2RoleRequestError: no EC2 instance role found\ncaused by: EC2MetadataError: failed to make EC2Metadata request\n404 Not Found\n\nThe resource could not be found.\n\n \n\tstatus code: 404, request id: \n\n\n with provider["registry.terraform.io/hashicorp/aws"],\n on provider.tf line 1, in provider "aws":\n 1: provider "aws" {\n\n",
"stderr_lines": [
"",
"Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.",
"",
"Please see https://registry.terraform.io/providers/hashicorp/aws",
"for more information about providing credentials.",
"",
"Error: NoCredentialProviders: no valid providers in chain",
"caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.",
"SharedCredsLoad: failed to load profile, .",
"EC2RoleRequestError: no EC2 instance role found",
"caused by: EC2MetadataError: failed to make EC2Metadata request",
"404 Not Found",
"",
"The resource could not be found.",
"",
" ",
"\tstatus code: 404, request id: ",
"",
"",
" with provider["registry.terraform.io/hashicorp/aws"],",
" on provider.tf line 1, in provider "aws":",
" 1: provider "aws" {",
""
],
"stdout": "",
"stdout_lines": []
}
Beta Was this translation helpful? Give feedback.
All reactions