Skip to content

Commit 0a1789f

Browse files
authored
Merge pull request #1 from university-outreach-infrastructure-tf/remove-packages-registry-buckets
remove registry and packages bucket
2 parents c5fbc81 + 57f1078 commit 0a1789f

File tree

14 files changed

+6
-159
lines changed

14 files changed

+6
-159
lines changed

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ module "gitlab" {
4040
gitlab_application_ami = var.gitlab_ami
4141
gitlab_artifactory_s3_bucket_name = var.gitlab_artifactory_s3_bucket_name
4242
gitlab_lfs_s3_bucket_name = var.gitlab_lfs_s3_bucket_name
43-
gitlab_packages_s3_bucket_name = var.gitlab_packages_s3_bucket_name
44-
gitlab_registry_s3_bucket_name = var.gitlab_registry_s3_bucket_name
4543
gitlab_backup_s3_bucket_name = var.gitlab_backup_s3_bucket_name
4644
gitlab_kms_alias = var.gitlab_kms_alias
4745
}
@@ -59,8 +57,6 @@ module "gitlab" {
5957
| force_destroy_s3_bucket | Boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. | `bool` | `false` | no |
6058
| gitlab_artifactory_s3_bucket_name | Name of Gitlab Artifactory S3 bucket | `string`| "" | yes |
6159
| gitlab_lfs_s3_bucket_name | Name of Gitlab LFS S3 bucket | `string`| "" | yes |
62-
| gitlab_packages_s3_bucket_name | Name of Gitlab Packages S3 bucket | `string`| "" | yes |
63-
| gitlab_registry_s3_bucket_name | Name of Gitlab Registry S3 bucket | `string`| "" | yes |
6460
| gitlab_backup_s3_bucket_name | Name of Gitlab Backup S3 bucket | `string`| "" | yes |
6561
| dns_name | Domain name for which the certificate should be issued | `string`| "" | yes |
6662
| domain_name | ALB record53 entry domain name | `string`| "" | yes |
@@ -86,10 +82,6 @@ module "gitlab" {
8682
| ----------------------------------| ----------------------------------------------|
8783
| gitlab_artifactory_s3_bucket_id | Gitlab artifactory S3 bucket Name |
8884
| gitlab_artifactory_s3_bucket_arn | Gitlab artifactory S3 bucket ARN |
89-
| gitlab_registry_s3_bucket_id | Gitlab registry S3 bucket Name |
90-
| gitlab_registry_s3_bucket_arn | Gitlab registry S3 bucket ARN |
91-
| gitlab_packages_s3_bucket_id | Gitlab packages S3 bucket Name |
92-
| gitlab_packages_s3_bucket_arn | Gitlab packages S3 bucket ARN |
9385
| gitlab_lfs_s3_bucket_id | Gitlab LFS S3 bucket Name |
9486
| gitlab_lfs_s3_bucket_arn | Gitlab LFS S3 bucket ARN |
9587
| s3_secret_key | S3 IAM User secret key |
@@ -107,4 +99,4 @@ module "gitlab" {
10799
| route53_cert_validation | ALB Route53 FQDN |
108100
| route53_gitlab_alb | Route53 FQDN for gitlab instance |
109101
| bastion_public_eip | EIP Address of Bastion Instance |
110-
| gitlab_private_ip | Private IP Address of Gitlab Instance |
102+
| gitlab_private_ip | Private IP Address of Gitlab Instance |

examples/single-node/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ module "gitlab" {
2020
gitlab_application_ami = var.gitlab_ami
2121
gitlab_artifactory_s3_bucket_name = var.gitlab_artifactory_s3_bucket_name
2222
gitlab_lfs_s3_bucket_name = var.gitlab_lfs_s3_bucket_name
23-
gitlab_packages_s3_bucket_name = var.gitlab_packages_s3_bucket_name
24-
gitlab_registry_s3_bucket_name = var.gitlab_registry_s3_bucket_name
2523
gitlab_backup_s3_bucket_name = var.gitlab_backup_s3_bucket_name
2624
gitlab_kms_alias = var.gitlab_kms_alias
2725
}

examples/single-node/outputs.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ output "gitlab_artifactory_s3_bucket_arn" {
66
value = module.gitlab.gitlab_artifactory_s3_bucket_arn
77
}
88

9-
output "gitlab_packages_s3_bucket_id" {
10-
value = module.gitlab.gitlab_packages_s3_bucket_id
11-
}
12-
13-
output "gitlab_packages_s3_bucket_arn" {
14-
value = module.gitlab.gitlab_packages_s3_bucket_arn
15-
}
16-
17-
output "gitlab_registry_s3_bucket_id" {
18-
value = module.gitlab.gitlab_registry_s3_bucket_id
19-
}
20-
21-
output "gitlab_registry_s3_bucket_arn" {
22-
value = module.gitlab.gitlab_registry_s3_bucket_arn
23-
}
24-
259
output "gitlab_lfs_s3_bucket_id" {
2610
value = module.gitlab.gitlab_lfs_s3_bucket_id
2711
}

examples/single-node/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ variable "gitlab_artifactory_s3_bucket_name" {
3636
variable "gitlab_lfs_s3_bucket_name" {
3737
}
3838

39-
variable "gitlab_packages_s3_bucket_name" {
40-
}
41-
42-
variable "gitlab_registry_s3_bucket_name" {
43-
}
44-
4539
variable "gitlab_backup_s3_bucket_name" {
4640
}
4741

module/single-node-omnibus/alb.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ resource "aws_lb" "gitlab_alb" {
55
security_groups = [aws_security_group.gitlab_alb.id]
66
ip_address_type = "ipv4"
77
subnets = var.public_subnet_id
8-
tags = {"Name" = format("%s-alb", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
8+
tags = {"Name" = format("%s-gitlab-alb", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
99
}
1010

1111
resource "aws_lb_target_group" "gitlab_alb_tg" {
1212
port = 443
1313
protocol = "HTTPS"
1414
vpc_id = var.vpc_id
15-
tags = {"Name" = format("%s-alb-tg", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
15+
tags = {"Name" = format("%s-gitlab-alb-tg", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
1616
health_check {
1717
port = "traffic-port"
1818
protocol = "HTTPS"

module/single-node-omnibus/ebs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "aws_ebs_volume" "gitlab_data" {
55
type = "gp2"
66
availability_zone = data.aws_subnet.private_selected.availability_zone
77
tags = {
8-
"Name" = format("%s-data-disk",module.gitlab_label.name),
8+
"Name" = format("%s-gitlab-data-disk",module.gitlab_label.name),
99
"Type" = "gitlab-data",
1010
"snapshot_policy" = format("%s-data daily snapshots", module.gitlab_label.name),
1111
"Snapshot"= "true"

module/single-node-omnibus/ec2.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ resource "aws_instance" "gitlab_application" {
77
user_data = data.template_cloudinit_config.config.rendered
88
associate_public_ip_address = false
99
monitoring = true
10-
volume_tags = { "Name" = format("%s-instance-ebs", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
11-
tags = { "Name" = format("%s-instance", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
10+
volume_tags = { "Name" = format("%s-gitlab-instance-ebs", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
11+
tags = { "Name" = format("%s-gitlab-instance", module.gitlab_label.name), "Environment" = module.gitlab_label.stage}
1212
}

module/single-node-omnibus/local-resources.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ data "template_file" "gitlab_application_user_data" {
3939
s3_bucket_user_secret_key = aws_iam_access_key.s3_access_key.secret
4040
artifactory_s3_bucket_name = format("%s-%s",module.gitlab_label.id, var.gitlab_artifactory_s3_bucket_name)
4141
lfs_s3_bucket_name = format("%s-%s",module.gitlab_label.id, var.gitlab_lfs_s3_bucket_name)
42-
packages_s3_bucket_name = format("%s-%s",module.gitlab_label.id, var.gitlab_packages_s3_bucket_name)
43-
registry_s3_bucket_name = format("%s-%s",module.gitlab_label.id, var.gitlab_registry_s3_bucket_name)
4442
backup_s3_bucket_name = format("%s-%s",module.gitlab_label.id, var.gitlab_backup_s3_bucket_name)
4543
domain_name = var.domain_name
4644
}

module/single-node-omnibus/outputs.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ output "gitlab_artifactory_s3_bucket_arn" {
66
value = aws_s3_bucket.gitlab_artifactory_s3_bucket.arn
77
}
88

9-
output "gitlab_registry_s3_bucket_id" {
10-
value = aws_s3_bucket.gitlab_registry_s3_bucket.id
11-
}
12-
13-
output "gitlab_registry_s3_bucket_arn" {
14-
value = aws_s3_bucket.gitlab_registry_s3_bucket.arn
15-
}
16-
17-
output "gitlab_packages_s3_bucket_id" {
18-
value = aws_s3_bucket.gitlab_packages_s3_bucket.id
19-
}
20-
21-
output "gitlab_packages_s3_bucket_arn" {
22-
value = aws_s3_bucket.gitlab_packages_s3_bucket.arn
23-
}
24-
259
output "gitlab_lfs_s3_bucket_id" {
2610
value = aws_s3_bucket.gitlab_lfs_s3_bucket.id
2711
}

module/single-node-omnibus/rt53.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# ---------------------------------------------------------------------------------------------------------------------
2-
# CREATE DNS A RECORDS IN ROUTE 53 FOR CERTIFICATE
3-
# ---------------------------------------------------------------------------------------------------------------------
41
resource "aws_route53_record" "cert_validation" {
52
name = aws_acm_certificate.gitlab_cert.domain_validation_options.0.resource_record_name
63
type = aws_acm_certificate.gitlab_cert.domain_validation_options.0.resource_record_type
@@ -9,9 +6,6 @@ resource "aws_route53_record" "cert_validation" {
96
ttl = 300
107
}
118

12-
# ---------------------------------------------------------------------------------------------------------------------
13-
# CREATE DNS A RECORDS IN ROUTE 53 POINTING AT THE LOAD BALANCER
14-
# ---------------------------------------------------------------------------------------------------------------------
159
resource "aws_route53_record" "alb_dns" {
1610
zone_id = var.zone_id
1711
name = var.domain_name

0 commit comments

Comments
 (0)