Skip to content

spaces in tags.Name creates invalid inventory.ini entry #138

@rngadam

Description

@rngadam
resource "aws_instance" "android_build" {
  tags = {
    Name = "Android Builder"
  }

generates:

[name_android builder]

which fails with:

[WARNING]:  * Failed to parse /Users/rngadam/coderbunker/prj/esmart/esmart-terraform-build/inventory.ini with ini plugin: /Users/rngadam/coderbunker/prj/esmart/esmart-
terraform-build/inventory.ini:18: Invalid section entry: '[name_android builder]'. Please make sure that there are no spaces in the section entry, and that there are no
other invalid characters

[WARNING]: Unable to parse /Users/rngadam/coderbunker/prj/esmart/esmart-terraform-build/inventory.ini as an inventory source

workaround:

resource "aws_instance" "android_build" {
  tags = {
    Name = "Android_Builder"
  }

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