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

Allow Records with Matching Name + Type #18

Closed
wants to merge 5 commits into from

Conversation

milldr
Copy link
Member

@milldr milldr commented Oct 13, 2022

what

  • Allowing for records to have the same Name and Type
  • Added index to key for records map

why

  • We want to be able to create records that have the same name and type, so that we can create NS (different values)
  • It is up to the user to ensure that duplicate records are not attempted to be created. Otherwise we would need to add name+type+value as key for the record map

references

@milldr
Copy link
Member Author

milldr commented Oct 13, 2022

/test all

milldr and others added 2 commits October 13, 2022 15:20
@milldr milldr marked this pull request as ready for review October 13, 2022 22:37
@milldr milldr requested review from a team as code owners October 13, 2022 22:37
@milldr milldr requested review from dotCipher and korenyoni October 13, 2022 22:37
@milldr
Copy link
Member Author

milldr commented Oct 13, 2022

/test all

record.name,
record.type,
index(local.flatten_records, record)
Copy link
Member

Choose a reason for hiding this comment

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

It's probably obvious but could you explain what the value of the index function would return as an example of a record input to this module?

Copy link
Member

@nitrocode nitrocode left a comment

Choose a reason for hiding this comment

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

Thank you for putting in this PR.

@Nuru and I spoke of this change not too long ago and we decided that a key input would be the best path forward.

A few days ago we received this PR which does have the key input. It's worth reviewing that one instead of this one.

https://github.com/cloudposse/terraform-cloudflare-zone/pull/17/files

@milldr
Copy link
Member Author

milldr commented Oct 14, 2022

Closing in favor of #17

@milldr milldr closed this Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants