Skip to content

Commit

Permalink
modified Server Host Name of AWS RDS MSSQL to remove extra port at th…
Browse files Browse the repository at this point in the history
…e end (#23)
  • Loading branch information
PetalJsonar authored Nov 7, 2024
1 parent 88d8735 commit 9ff0cb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
### Features
- Aurora PostgreSQL CloudWatch with slow query auditing example

### Bug Fixes
- Modified Server Host Name of AWS RDS MS SQL SERVER Dsfhub assets

## 1.0.8 (2024-10-15)

### Features
Expand Down
2 changes: 1 addition & 1 deletion examples/onboard-aws-rds-ms-sql-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "terraform_data" "configure_database-2" {
environment = {
ADMIN_USER = local.master_user
ADMIN_PASSWORD = local.master_password
ENDPOINT = module.aws-rds-ms-sql-server-2.rds-sql-server-instance[count.index].endpoint
ENDPOINT = regex("(.*):", module.aws-rds-ms-sql-server-2.rds-sql-server-instance[count.index].endpoint)[0]

SERVER_AUDIT_NAME = local.server_audit_name
SERVER_AUDIT_SPEC_NAME = local.server_audit_spec_name
Expand Down
2 changes: 1 addition & 1 deletion modules/onboard-aws-rds-ms-sql-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module "aws-rds-ms-sql-server-asset" {
logs_destination_asset_id = module.s3-bucket.this.arn
parent_asset_id = var.aws_rds_mssql_parent_asset_id
region = var.aws_rds_mssql_region
server_host_name = module.rds-sql-server-db[count.index].this.endpoint
server_host_name = regex("(.*):", module.rds-sql-server-db[count.index].this.endpoint)[0]
server_port = module.rds-sql-server-db[count.index].this.port
}

Expand Down

0 comments on commit 9ff0cb3

Please sign in to comment.