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

Error with the example #55

Closed
Brownie2002 opened this issue Mar 23, 2022 · 8 comments
Closed

Error with the example #55

Brownie2002 opened this issue Mar 23, 2022 · 8 comments
Labels
upstream bug Issue is due to an acknolwedged upstream bug wontfix This will not be worked on

Comments

@Brownie2002
Copy link

Hello,

I try to use your module. But for now, I am not able. I tried the example (with adding my credentials) and I get the same error.

Error: Error creating Auto Scaling Group: InvalidQueryParameter: Incompatible launch template: Each network interface requires a unique device index.
 status code: 400, request id: ea9c7cfb-fe66-4896-9e67-cd35d45e20d2

with module.ssh-bastion-service.aws_autoscaling_group.bastion-service,
on .terraform\modules\ssh-bastion-service\main.tf line 74, in resource "aws_autoscaling_group" "bastion-service":
74: resource "aws_autoscaling_group" "bastion-service" {

I am very noob to terraform, so I try to reproduce the example without success. So maybe I done something wrong.

Regards,

Brownie

@joshuamkite
Copy link
Owner

Hi

Sorry to hear of this- are you able to provide the code you are using to call this module?

Joshua

@Brownie2002
Copy link
Author

Brownie2002 commented Mar 25, 2022

Hello, easy, it is the example : https://github.com/joshuamkite/terraform-aws-ssh-bastion-service/tree/master/examples/full-with-public-ip

So no modification ... and thank you for your attention.

@joshuamkite
Copy link
Owner

I am afraid that I don't see this error when running the example as provided with no changes- deploys without issue for me. Are you adding any optional values such as additional security groups?

@Brownie2002
Copy link
Author

Hello, unfortunately no ... I will try again later. So, we could close the issue since you cannot reproduce it :(

@joshuamkite
Copy link
Owner

I don't know what to say- I don't really want to dismiss your difficulty as 'works on my machine' but without additional detail or being able to reproduce it I don't know how I could proceed

@karmajunkie
Copy link

I'm also seeing this issue in my own use. It appears to be related to hashicorp/terraform-provider-aws#23766. I've installed v4.5 of the hashicorp/aws provider (per the linked issue) but to fix the issue you have to tear down the launch template created by v4.6 and let it recreate.

@joshuamkite
Copy link
Owner

Thanks for this @karmajunkie ! IIRC this is a manifestation of an upstream bug with version 4.60 specifically of the AWS provider. Although it is fixed with 4.70 and above these will still break if you have a pre-existing launch template created with 4.6?

Assuming above is correct, the best I could do here is advise a workaround procedure for 4.6 but this would only be relevant for people using or who had used the 4.6 provider, which was only 'current' from March 18, 2022 to March 24, 2022, i.e. 5 days. Whilst I am happy to be challenged on this, I don't think that this is appropriate or worthwhile to do so within this project and propose to close as 'upstream bug now fixed'

@joshuamkite joshuamkite added wontfix This will not be worked on upstream bug Issue is due to an acknolwedged upstream bug labels Apr 16, 2022
@joshuamkite
Copy link
Owner

Closing as 'upstream bug wontfix (now fixed upstream)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream bug Issue is due to an acknolwedged upstream bug wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants