Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix count for redis_egress sg rule #42

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

Open
IrmantasMarozas wants to merge 1 commit into umotif-public:main
base: main
Choose a base branch
Loading
from IrmantasMarozas:feature/fix-egress-rule

Conversation

@IrmantasMarozas
Copy link
Contributor

@IrmantasMarozas IrmantasMarozas commented Apr 21, 2023
edited
Loading

Description

Fix count for redis_egress sg rule

I'm not sure why, but pre-commit hook for docs didn't work for me, so I commented it out.

Terraform docs...........................................................Failed

  • hook id: terraform_docs
  • exit code: 1
  • files were modified by this hook

Thegeeky1, fogers777, fogers1, fogers2, vytvy, and fogers3 reacted with thumbs up emoji egarbi reacted with thumbs down emoji
@Ohid25 Ohid25 self-requested a review August 15, 2023 13:03
@Ohid25 Ohid25 added bug Something isn't working question Further information is requested labels Aug 15, 2023
Copy link
Contributor

Ohid25 commented Aug 15, 2023
edited
Loading

Has this been validated using one of the examples?

I tried running this change against one of the examples and I got

❯ terraform validate
╷
│ Error: Incorrect attribute value type
│
│ on ../../main.tf line 142, in resource "aws_security_group_rule" "redis_egress":
│ 142: cidr_blocks = var.egress_cidr_blocks[count.index]
│ ├────────────────
│ │ count.index is a number
│ │ var.egress_cidr_blocks is a list of string
│
│ Inappropriate value for attribute "cidr_blocks": list of string required.

Second, I'm not totally sure what the issue is here in the first place. What is this solution trying to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Ohid25 Ohid25 Awaiting requested review from Ohid25

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

bug Something isn't working question Further information is requested

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /