terraform-aws-modules / terraform-aws-autoscaling

Terraform module to create AWS Auto Scaling resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws
Apache License 2.0
288 stars 552 forks source link

Issue of An argument named "tags" is not expected here. #233

Closed byronliucareer closed 11 months ago

byronliucareer commented 1 year ago

Hi, We're using "Version": "4.11.0" of this module. From last week, we got an error said "An argument named "tags" is not expected here" on .terraform/modules/asg/main.tf line 449, in resource "aws_autoscaling_group" "this": 449: tags = local.tags. There's no code changes to our repo. We've been trying to fix this but couldn't figure it out. Could you please advise how to solve this problem? Thanks.

bryantbiggs commented 1 year ago

please pin your AWS provider to restrict use of v5.0 which has breaking changes related to autoscaling groups

byronliucareer commented 1 year ago

hi @bryantbiggs, thanks for your reply. We had pinned version = ~>4.0 and the tag issue was solved. However, when we made a deployment via bamboo pipeline, we got errors like "Inconsistent dependency lock file", "The following dependency selections recorded in the lock file are inconsistent with the configuration in the saved plan:", "The given plan file was created with a different set of external dependency selections than the current configuration. A saved plan can be applied only to the same configuration it was created from." Could you please advise how to solve this kind of issues? Thanks.

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 11 months ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 10 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.