Skip to content

Commit

Permalink
CC-2147: add appshare volume
Browse files Browse the repository at this point in the history
  • Loading branch information
SahidKhan89 committed Oct 27, 2023
1 parent 2f8dbea commit 0b21183
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"ebs_size_ebsdb_techst": 100,
"ebs_size_ebsdb_backup": 8000,
"ebs_size_ebsdb_diag": 50,
"ebs_size_ebsdb_appshare": 100,
"ebs_default_iops_test": 9000,
"dbf_device": "nvme5n1",
"dbf_path": "/CCMS/EBS/dbf",
Expand Down
25 changes: 25 additions & 0 deletions terraform/environments/ccms-ebs-upgrade/ec2-oracle_ebs_db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,31 @@ resource "aws_volume_attachment" "diag_att" {
volume_id = aws_ebs_volume.diag.id
instance_id = aws_instance.ec2_oracle_ebs.id
}


resource "aws_ebs_volume" "appshare" {
lifecycle {
ignore_changes = [kms_key_id]
}
availability_zone = "eu-west-2a"
size = local.application_data.accounts[local.environment].ebs_size_ebsdb_appshare
type = "io2"
iops = 3000
encrypted = true
kms_key_id = data.aws_kms_key.ebs_shared.key_id
tags = merge(local.tags,
{ Name = "appshare" }
)
}

resource "aws_volume_attachment" "appshare_att" {
depends_on = [
aws_ebs_volume.appshare
]
device_name = "/dev/sdq"
volume_id = aws_ebs_volume.appshare.id
instance_id = aws_instance.ec2_oracle_ebs.id
}
/*
#### This mount was required for golive incident
#### Just commenting out, rather than remove - just in case
Expand Down

0 comments on commit 0b21183

Please sign in to comment.