diff --git a/cloudwatch.tf b/cloudwatch.tf deleted file mode 100644 index 0d6f466..0000000 --- a/cloudwatch.tf +++ /dev/null @@ -1,19 +0,0 @@ -resource "aws_cloudwatch_metric_alarm" "burendo_website_health_check_alarm" { - provider = aws.northvirginia - alarm_name = "${local.environment}-burendo-website-health-check-alarm" - comparison_operator = "LessThanThreshold" - evaluation_periods = "1" - metric_name = "HealthCheckStatus" - namespace = "AWS/Route53" - period = "60" - statistic = "Minimum" - threshold = "1" - insufficient_data_actions = [] - ok_actions = [data.terraform_remote_state.burendo_common_config.outputs.sns_topic_alerts_to_slack.arn] - alarm_actions = [data.terraform_remote_state.burendo_common_config.outputs.sns_topic_alerts_to_slack.arn] - alarm_description = "Send an alarm if burendo website is down in ${local.environment}" - - dimensions = { - HealthCheckId = aws_route53_health_check.burendo_website_health_check.id - } -} diff --git a/route53.tf b/route53.tf deleted file mode 100644 index 69e3859..0000000 --- a/route53.tf +++ /dev/null @@ -1,10 +0,0 @@ -resource "aws_route53_health_check" "burendo_website_health_check" { - provider = aws.northvirginia - failure_threshold = "5" - fqdn = "burendo.com" - port = 443 - request_interval = "30" - resource_path = "/" - search_string = "Welcome to Burendo" - type = "HTTPS_STR_MATCH" -} diff --git a/terraform.tf.j2 b/terraform.tf.j2 index 8d3639c..352bf13 100644 --- a/terraform.tf.j2 +++ b/terraform.tf.j2 @@ -28,18 +28,3 @@ provider "aws" { alias = "northvirginia" region = "us-east-1" } - -data "terraform_remote_state" "burendo_common_config" { - backend = "s3" - workspace = "default" - - config = { - bucket = "{{terraform.state_file_bucket}}" - key = "terraform/burendo/burendo-common-config.tfstate" - region = "{{terraform.state_file_region}}" - encrypt = false - dynamodb_table = "terraform-state-lock" - kms_key_id = "arn:aws:kms:{{terraform.state_file_region}}:{{terraform.aws_production_acc}}:key/{{terraform.state_kms_key_id}}" - role_arn = "arn:aws:iam::{{terraform.aws_production_acc}}:role/{{terraform.state_role}}" - } -}