Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running terraform apply with terraform 0.12.1 gives invalid argument name #16

@retgits

Description

@retgits

When I run terraform apply after following along with the steps here, I get

terraform apply

Error: Invalid argument name

  on network.tf line 7, in resource "aws_vpc" "default":
   7:         "Name" = "${var.namespace}"

Argument names must not be quoted.


Error: Invalid single-argument block definition

  on variables.tf line 2, in variable "developer_ip":
   2: variable "developer_ip" { default = "" description = "Required if using debugging" }

A single-line block definition must end with a closing brace immediately after
its single argument definition.

My terraform version:

$ terraform version
Terraform v0.12.1

(I've tried the same using terraform 0.11.4 as suggested on Slack and that does work)

I've checked that I'm indeed running the code from this repo:

$ git remote show origin
* remote origin
  Fetch URL: https://github.com/ewilde/terraform-aws-openfaas-fargate

with the only change being that I've set self_signed_enabled to 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions