Skip to content

Commit

Permalink
updated cloudflare prov, deleted a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Feb 4, 2024
1 parent c13ffc7 commit b256a71
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions dnset.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

provider "cloudflare" {
email = var.cf_email
api_key = var.cf_api
}

resource "cloudflare_record" "a_record_cf" {
zone_id = var.zonecf_id
name = "17110711.xyz"
name = "kojimenez.site"
value = aws_instance.app_server.public_ip
type = "A"
ttl = 1
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ terraform {
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.23.0"
}
}
cloud {
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
variable "instance_name" {
description = "Value of the Name tag for the EC2 instance"
type = string
default = "testsample"
}

variable "cf_email" {
description = "cloudflare email"
type = string
Expand Down

0 comments on commit b256a71

Please sign in to comment.