Hi Community out there,
I am newbie to Terraform, trying to create dns record but struggling how to set IAM AccountID, IAM user name and password.
Basically created three files name as : hostedzone.tf, route53-record.tf, vars.tf
hostedzone.tf
resource "aws_route53_zone" "dns-record" {
name = var.dns-record
comment = "${var.dns-record} public zone"
provider = aws
}
route53-record.tf
resource "aws_route53_record" "dns-record" {
zone_id =
name = ""
type = "A"
ttl = "300"
records = [""]
}
vars.tf
variable "AWS_REGION" {
default = ""
}
variable "dns-record" {
default = ""
}
Thanks !