Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Set up http_api access correctly #218

Merged
merged 1 commit into from
May 3, 2021
Merged

Set up http_api access correctly #218

merged 1 commit into from
May 3, 2021

Conversation

mr-miles
Copy link
Contributor

Received an error using the module in our terraform:

Error: One of ['cidr_blocks', 'ipv6_cidr_blocks', 'self', 'source_security_group_id', 'prefix_list_ids'] must be set to create an AWS Security Group Rule
Error on .terraform/modules/consul_servers/modules/consul-security-group-rules/main.tf line 70, in resource "aws_security_group_rule" "allow_https_api_inbound":
Error: resource "aws_security_group_rule" "allow_https_api_inbound" {

If the module is given only security groups and not cidr ranges, a security group rule is created without all the necessary attributes. Change applies the right boolean logic for this case.

If the module is given only security groups and not cidr ranges, a security group rule is created without all the necessary attributes
Copy link
Collaborator

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch, thanks. I'll kick off tests now.

@brikis98 brikis98 linked an issue May 3, 2021 that may be closed by this pull request
@brikis98
Copy link
Collaborator

brikis98 commented May 3, 2021

Tests passed! Merging now.

@brikis98 brikis98 merged commit af53a3f into hashicorp:master May 3, 2021
@brikis98
Copy link
Collaborator

brikis98 commented May 3, 2021

@mr-miles
Copy link
Contributor Author

mr-miles commented May 3, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow_https_api_inbound errors when no cidr ranges specified
2 participants