Skip to content

Commit

Permalink
https for ip detection
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Steers committed Oct 29, 2020
1 parent 624ba39 commit c0f9018
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/aws/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

data "http" "icanhazip" { url = "http://ipv4.icanhazip.com" }
data "http" "icanhazip" { url = "https://ipv4.icanhazip.com" }

locals {
project_shortname = substr(var.name_prefix, 0, length(var.name_prefix) - 1)
Expand Down
2 changes: 1 addition & 1 deletion components/aws/ecs-task/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

data "http" "icanhazip" {
count = var.whitelist_terraform_ip ? 1 : 0
url = "http://ipv4.icanhazip.com"
url = "https://ipv4.icanhazip.com"
}

data "aws_ecs_cluster" "ecs_cluster" {
Expand Down
2 changes: 1 addition & 1 deletion components/aws/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

data "http" "icanhazip" {
count = var.whitelist_terraform_ip ? 1 : 0
url = "http://ipv4.icanhazip.com"
url = "https://ipv4.icanhazip.com"
}

resource "random_id" "random_pass" {
Expand Down
2 changes: 1 addition & 1 deletion components/aws/redshift/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

data "http" "icanhazip" {
count = var.whitelist_terraform_ip ? 1 : 0
url = "http://ipv4.icanhazip.com"
url = "https://ipv4.icanhazip.com"
}

data "aws_vpc" "vpc_lookup" {
Expand Down

0 comments on commit c0f9018

Please sign in to comment.