Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/database/PgBouncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class PgBouncer extends Construct {
: ec2.SubnetType.PRIVATE_WITH_EGRESS,
},
machineImage: ec2.MachineImage.fromSsmParameter(
"/aws/service/canonical/ubuntu/server/jammy/stable/current/amd64/hvm/ebs-gp2/ami-id",
"/aws/service/canonical/ubuntu/server/noble/stable/current/amd64/hvm/ebs-gp3/ami-id",
{ os: ec2.OperatingSystemType.LINUX }
),
blockDevices: [
Expand Down
8 changes: 6 additions & 2 deletions lib/database/pgbouncer-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# Install required packages
apt-get update

# Function that makes sure we don't hit a dpkg lock error
wait_for_dpkg_lock() {
Expand All @@ -30,7 +29,12 @@ wait_for_dpkg_lock() {
}

wait_for_dpkg_lock
DEBIAN_FRONTEND=noninteractive apt-get install -y pgbouncer jq awscli
export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get upgrade -y
apt-get install -y pgbouncer jq
snap install aws-cli --classic

echo "Fetching secret from ARN: ${SECRET_ARN}"

Expand Down
Loading