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

fix: Update - List items should be accessed using square brackets - Deprecated Index #320

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

renatovieiradesouza
Copy link

@renatovieiradesouza renatovieiradesouza commented Apr 29, 2024

List items should be accessed using square brackets

Description

terraform_deprecated_index
https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.4.0/docs/rules/terraform_deprecated_index.md

Motivation and Context

Pre-commit exec

Breaking Changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

List items should be accessed using square brackets
@renatovieiradesouza renatovieiradesouza changed the title Update - Module Update - List items should be accessed using square brackets - Deprecated Index Apr 29, 2024
@renatovieiradesouza renatovieiradesouza changed the title Update - List items should be accessed using square brackets - Deprecated Index fix: Update - List items should be accessed using square brackets - Deprecated Index Apr 29, 2024
Renato Souza added 2 commits April 29, 2024 08:38
- Warning: [Fixable] List items should be accessed using square brackets (terraform_deprecated_index) on line 7:   this_sg_id = var.create_sg ? concat(aws_security_group.this.*.id, aws_security_group.this_name_prefix.*.id, [])[0] : var.security_group_id
- Warning: variable rules should be moved from .terragrunt-cache/CmZSpSqn7SaVQPmDv2lWnCorYSY/xiaRMVJQ7u1QcnX4uRWzVu02LlQ/rules.tf to variables.tf (terraform_standard_module_structure)
- Warning: [Fixable] variable auto_groups is declared but not used (terraform_unused_declarations)
- Warning: variable auto_groups should be moved from .terragrunt-cache/CmZSpSqn7SaVQPmDv2lWnCorYSY/xiaRMVJQ7u1QcnX4uRWzVu02LlQ/rules.tf to variables.tf (terraform_standard_module_structure)
- Warning: [Fixable] variable computed_ingress_with_prefix_list_ids is declared but not used (terraform_unused_declarations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant