Ask questionsThe argument "host" is required, but no definition was found.

<!-- Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see:

If your issue relates to a specific Terraform provider, please open it in the provider's own repository. The index of providers is at . -->

Terraform Version

Terraform v0.12.0-beta1
+ v1.60.0-dev20190216h00-dev
+ provider.local v1.2.0
+ provider.random v2.1.0

Terraform Configuration Files

<!-- Paste the relevant parts of your Terraform configuration between the ``` marks below.

For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file. For security, you can also encrypt the files using our GPG public key. -->

resource "aws_instance" "default" {
  ami                   = var.dsm_ami
  instance_type         = var.dsm_instance_type
  security_groups       = var.dsm_security_groups
  iam_instance_profile  = var.dsm_iam_instance_profile
  key_name              = var.dsm_key_pair
  tags                  = local.tags

  /* copy up private keyfile for chef-solo to use */
  provisioner "file" {
    source = "~/.ssh/Oregon.pem"
    destination = "/home/ec2-user/.ssh/Oregon.pem"
    connection {
      type = "ssh"
      user = "ec2-user"
      private_key = "${file("~/.ssh/Oregon.pem")}"

Debug Output

2019/03/25 11:38:43 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
Error: Missing required argument

  on line 27, in resource "aws_instance" "default":
2019-03-25T11:38:43.461-0400 [DEBUG] plugin: plugin process exited: path=C:\Terraform\terraform.exe pid=2384
2019-03-25T11:38:43.461-0400 [DEBUG] plugin: plugin exited
  27: resource "aws_instance" "default" {
2019-03-25T11:38:43.463-0400 [DEBUG] plugin: plugin process exited: path=C:\Users\wesleym\AppData\Roaming\terraform.d\plugins\windows_amd64\terraform-provider-aws_v1.60.0-dev20190216H00-dev_x4.exe pid=15504

2019-03-25T11:38:43.463-0400 [DEBUG] plugin: plugin exited
The argument "host" is required, but no definition was found.

Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:

  1. terraform init
  2. terraform plan or terraform apply

Answer questions wesmartin17

Great! Thank you so much for getting to this so quickly @jbardin @apparentlymart I must have missed that i


Related questions

failed to save provider manifest: open .terraform/plugins/linux_amd64/lock.json: permission denied hot 4
Unable to run 0.12upgrade hot 3
Module cannot find alias AWS provider in 0.12.0 hot 3
Error: Invalid template interpolation value hot 2
Terraform v0.11.1 : Error downloading modules: Error loading modules: open .terraform/modules/3f10921295c292995128e9e36eb: no such file or directory hot 2
MalformedPolicyDocument: Policy document should not specify a principal. hot 2
Error in Terraform 0.12.0: This object has no argument, nested block, or exported attribute hot 2
Feature Request - Allow list/array in 'query' in 'external' data source hot 2
Terraform provider downloads fail with TLS handshake timeout hot 2
'terraform init' failed with 'Registry service unreachable.' error hot 2
for_each attribute for creating multiple resources based on a map hot 2
`Unreadable module directory` error is not clear for nested modules hot 2
Provider Development: Expected type 'string', got unconvertible type '[]interface {}' - with complicated block hot 2
"Error: Provider configuration not present" when aliased provider is used hot 2
Error loading state: state snapshot was created by Terraform v0.12.7, which is newer than current v0.12.6 hot 2
Github User Rank List