Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws: conflic between name/id on aws_instance from launch_template #340

Closed
talset opened this issue Feb 20, 2023 · 0 comments · Fixed by #372
Closed

aws: conflic between name/id on aws_instance from launch_template #340

talset opened this issue Feb 20, 2023 · 0 comments · Fixed by #372
Labels
Provider: AWS Issues related to the AWS Provider Type: Bug Something isn't working

Comments

@talset
Copy link
Member

talset commented Feb 20, 2023

General information:

  • Operating System:
  • Terracognita version / tag:
  • Did you build Terracognita from sources or did you use the Docker image:

Describe the bug:

when importing aws_instance created from a launch_template, both id and name are imported.
But according to the doc, only one should be present https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#launch-template-specification

we should only write one (id?)

Log message

│ Error: Invalid combination of arguments
│ 
│   with module.tf.aws_instance.lueim,
│   on module-tf/ec2_elastic_compute_cloud.tf line 1232, in resource "aws_instance" "lueim":
│ 1232:     name = var.aws_instance_lueim_launch_template_0_name
│ 
│ "launch_template.0.name": only one of `launch_template.0.id,launch_template.0.name` can be specified, but `launch_template.0.id,launch_template.0.name` were specified.

Additional context

@talset talset added the Type: Bug Something isn't working label Feb 20, 2023
@talset talset changed the title aws: aws: conflic between name/id on aws_instance from launch_template Feb 20, 2023
@talset talset added the Provider: AWS Issues related to the AWS Provider label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Provider: AWS Issues related to the AWS Provider Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant