Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Terraboard #1251

Merged
merged 1 commit into from Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 0 additions & 25 deletions terraform/policies/terraboard_policy.tpl

This file was deleted.

12 changes: 0 additions & 12 deletions terraform/projects/app-monitoring/main.tf
Expand Up @@ -324,18 +324,6 @@ resource "aws_route53_record" "internal_service_record" {
}
}

resource "aws_route53_record" "terraboard_external_service_record" {
zone_id = "${data.aws_route53_zone.external.zone_id}"
name = "terraboard.${var.external_domain_name}"
type = "A"

alias {
name = "${aws_elb.monitoring_internal_elb.dns_name}"
zone_id = "${aws_elb.monitoring_internal_elb.zone_id}"
evaluate_target_health = true
}
}

module "alarms-elb-monitoring-internal" {
source = "../../modules/aws/alarms/elb"
name_prefix = "${var.stackname}-monitoring-internal"
Expand Down
29 changes: 0 additions & 29 deletions terraform/projects/infra-monitoring/main.tf
Expand Up @@ -293,35 +293,6 @@ resource "aws_sqs_queue_policy" "notifications_sqs_queue_policy" {
policy = "${data.template_file.notifications_sqs_queue_policy_template.rendered}"
}

#
# Create an IAM user which allows Terraboard to read Terraform state files from S3
#

data "template_file" "terraboard_policy_template" {
template = "${file("${path.module}/../../policies/terraboard_policy.tpl")}"

vars {
aws_environment = "${var.aws_environment}"
}
}

resource "aws_iam_policy" "terraboard_policy" {
name = "${var.aws_environment}-terraboard-policy"
path = "/"
description = "Allow read access to S3 govuk-terraform-steppingstone bucket for the environment"
policy = "${data.template_file.terraboard_policy_template.rendered}"
}

resource "aws_iam_user" "terraboard_user" {
name = "govuk-terraboard"
}

resource "aws_iam_policy_attachment" "terraboard_user_policy_attachment" {
name = "terraboard_user_policy_attachment"
users = ["${aws_iam_user.terraboard_user.name}"]
policy_arn = "${aws_iam_policy.terraboard_policy.arn}"
}

# Outputs
# --------------------------------------------------------------

Expand Down