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

Improve records interface to allow for multiple records with unique values #15

Closed
nitrocode opened this issue Sep 7, 2022 · 0 comments · Fixed by #17
Closed

Improve records interface to allow for multiple records with unique values #15

nitrocode opened this issue Sep 7, 2022 · 0 comments · Fixed by #17

Comments

@nitrocode
Copy link
Member

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Need to create 4 records with the same value with different targets

i.e.

test.example.com NS aws-resolver1.blabla
test.example.com NS aws-resolver2.blabla
test.example.com NS aws-resolver21.blabla
test.example.com NS aws-resolver88.blabla

This results in resource conflicts because the value is not added to the key

test.example.comNS
test.example.comNS
test.example.comNS
test.example.comNS

Expected Behavior

Unique keys per record

Proposal

  records = [
    {
      key   = "bastion_A"
      name  = "bastion"
      value = "192.168.1.11"
      type  = "A"
      ttl   = 3600
    },
    {
      key   = "api_A"
      name  = "api"
      value = "192.168.2.22"
      type  = "A"
      ttl   = 3600
    },
    {
      key   = "test.example.com_NS_1"
      name  = "test"
      value = "aws-resolver1.blabla"
      type  = "NS"
      ttl   = 3600
    },
    {
      key   = "test.example.com_NS_2"
      name  = "test"
      value = "aws-resolver2.blabla"
      type  = "NS"
      ttl   = 3600
    },
  ]

This would

  • Allow key to be optional but if it was set, it would be mandatory for all items in the list
  • Backwards compatibility

references

@nitrocode nitrocode changed the title Improve records interface to allow for Improve records interface to allow for multiple records with unique values Sep 7, 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
1 participant