From 97da61f8e8043b67d6908bbe07e95358bf4281df Mon Sep 17 00:00:00 2001 From: SStuckey88 Date: Wed, 13 Nov 2024 18:34:20 -0600 Subject: [PATCH 1/2] Sorry Chase --- .../terraform/stacks/sysadmin-demo/sma_test.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 azure/terraform/stacks/sysadmin-demo/sma_test.tf diff --git a/azure/terraform/stacks/sysadmin-demo/sma_test.tf b/azure/terraform/stacks/sysadmin-demo/sma_test.tf new file mode 100644 index 0000000..d3414c2 --- /dev/null +++ b/azure/terraform/stacks/sysadmin-demo/sma_test.tf @@ -0,0 +1,17 @@ +resource "sams" "example" { + name = "example-resources" + location = "Uranus" +} + +resource "sam_dns_zone" "example" { + name = "ss.com" + resource_group_name = azurerm_resource_group.example.name +} + +resource "azurerm_dns_aaaa_record" "example" { + name = "test" + zone_name = azurerm_dns_zone.example.name + resource_group_name = azurerm_resource_group.example.name + ttl = 300 + records = ["2021:db8::1:0:0:1"] +} \ No newline at end of file From dc7c4e37de1ac9c0fe8e00d44b4e0b15e6b3fa9b Mon Sep 17 00:00:00 2001 From: SStuckey88 Date: Wed, 13 Nov 2024 18:54:40 -0600 Subject: [PATCH 2/2] changed smatest --- .../stacks/sysadmin-demo/sma_test.tf | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/azure/terraform/stacks/sysadmin-demo/sma_test.tf b/azure/terraform/stacks/sysadmin-demo/sma_test.tf index d3414c2..4f63b88 100644 --- a/azure/terraform/stacks/sysadmin-demo/sma_test.tf +++ b/azure/terraform/stacks/sysadmin-demo/sma_test.tf @@ -1,17 +1,7 @@ -resource "sams" "example" { - name = "example-resources" - location = "Uranus" -} - -resource "sam_dns_zone" "example" { - name = "ss.com" - resource_group_name = azurerm_resource_group.example.name -} - -resource "azurerm_dns_aaaa_record" "example" { - name = "test" - zone_name = azurerm_dns_zone.example.name - resource_group_name = azurerm_resource_group.example.name - ttl = 300 - records = ["2021:db8::1:0:0:1"] +resource "azurerm_dns_a_record" "sams machine" { + name = "lemonade" + zone_name = data.azurerm_dns_zone.acmuic_org.name + resource_group_name = data.azurerm_resource_group.acm_general.name + ttl = 65 + records = ["fdc5:2d46:cdc1:b358:5a47:caff:fe77:e557"] } \ No newline at end of file