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

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)
Copy link

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

@github-actions github-actions bot added the stale label May 31, 2024
Copy link

This PR was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this Jun 10, 2024
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant