Skip to content

No explicit block is causing errors #2017

Closed

Description

@gusfune

After the release of 0.40.3 I have noticed that the runners were not triggering when having no block_device_mapping set in the terraform file.

The error show in AWS was:

ErrorMessage: 'Invalid device name /dev/xvd'

After some digging the issue found was that this block:

default = [{
    device_name           = "/dev/xvd"
    delete_on_termination = true
    volume_type           = "gp3"
    volume_size           = 30
    encrypted             = true
    iops                  = null
  }]

Actually should be

default = [{
    device_name           = "/dev/xvda"
    delete_on_termination = true
    volume_type           = "gp3"
    volume_size           = 30
    encrypted             = true
    iops                  = null
  }]

I managed to fix my main.tf file by setting this block below:

block_device_mappings = [{
    device_name           = "/dev/xvda"
    delete_on_termination = true
    volume_type           = "gp3"
    volume_size           = 30
    encrypted             = true
    iops                  = null
  }]
``

But, the default configuration should be reviewed. This was caused by #2014 to fix the issue I have reported on #1954.

Activity

  1. npalm commented on May 5, 2022

    @npalm
    Member

    Thx! Just find the same issue.

  2. gusfune commented on May 5, 2022

    @gusfune
    ContributorAuthor

    I have already pushed a fix for this @npalm on #2018 if that helps.

  3. npalm commented on May 5, 2022

    @npalm
    Member

    @gusfune thx, tested and one file was missed for the fix. Provided another fix on top of yours. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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