Skip to content

LaunchTemplate support for MNG broken with v14.0.0 #1211

@philicious

Description

@philicious

I have issues

I'm submitting a...

  • bug report

What is the current behavior?

#1129 that got released with v14.0.0 breaks the LT-support for MNG that got added by me with #997 and 13.1 !

when using an LT, you cannot set instance-type on the MNG itself ! however this commit breaks the logic

8978997#diff-7a3fc6c7df17fda0c341e61255461bf1f149256a9ddf14d4a18ab6f020d08136

using v14.0.0, TF wrongly wants to add the instance_type to existing MNG with LT but then also fails while trying so.

InvalidRequestException: Cannot specify instance types in launch template and API request

If this is a bug, how to reproduce? Please include a code sample if relevant.

try to create or run on existing MNG with LT

What's the expected behavior?

no regression. behavior <14.0 is expected

Are you able to fix this problem and submit a PR? Link here if you have already.

Environment details

  • Affected module version: v14.0.0
  • OS: macOS 11.0.1
  • Terraform version: 0.14.5

Any other relevant info

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