Skip to content

Problem running terraform apply on chapter8/part2b_multicloud-mmorpg-nomad #23

@DustinAlandzes

Description

@DustinAlandzes

I get this error:

Dustins-MBP:part2b_multicloud-mmorpg-nomad dustinalandzes$ terraform apply
╷
│ Warning: Empty provider configuration blocks are not required
│ 
│   on .terraform/modules/mmorpg/main.tf line 1:
│    1: provider "nomad" {
│ 
│ Remove the nomad.aws provider block from module.mmorpg. Add nomad.aws to the list of configuration_aliases for nomad in required_providers to define the provider configuration name.
│ 
│ (and one more similar warning elsewhere)
╵
╷
│ Error: Invalid index
│ 
│   on .terraform/modules/mmorpg/main.tf line 14, in locals:
│   14:   aws_region   = sort(data.nomad_regions.current.regions)[1]
│     ├────────────────
│     │ data.nomad_regions.current.regions is list of string with 1 element
│ 
│ The given key does not identify an element in this collection value: the given index is greater than or equal to the length of the collection.
╵

Will try to give some more detail at a future date, figured other people would run into this. I ended up skipping this and moving on to part 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions