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

add support for al2023 and non us-east-1 regions #13

Merged
merged 2 commits into from
Jul 1, 2024
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
7 changes: 4 additions & 3 deletions modules/teleport-node/assets/cloud-init/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
# --- script------------------------------------------------

yum install -y binutils
yum install -y yum-plugin-kernel-livepatch
yum kernel-livepatch enable -y
yum install -y kpatch-dnf
yum kernel-livepatch -y auto
yum install -y kpatch-runtime

systemctl enable kpatch.service
amazon-linux-extras enable livepatch
systemctl start kpatch.service

yum update -y
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ function cwagent_ctl {
}
export -f cwagent_ctl

touch /var/log/cloud-init-output.log
chmod 644 /var/log/cloud-init-output.log

touch /var/log/messages
chmod 644 /var/log/messages

cwagent_ctl -a fetch-config -s -m ec2 \
Expand Down
4 changes: 2 additions & 2 deletions modules/teleport-node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ locals {
data_dir = "/var/lib/teleport"
storage = {
type = "dynamodb"
region = "us-east-1"
region = local.aws_region_name
table_name = local.teleport_ddb_table_state_name
audit_events_uri = "dynamodb://${local.teleport_ddb_table_events_name}"
audit_sessions_uri = "s3://${local.teleport_bucket_name}/records"
Expand Down Expand Up @@ -128,7 +128,7 @@ locals {
enabled = "yes"
aws = [{
types = ["rds", "redshift"]
regions = ["us-east-1"]
regions = [local.aws_region_name]
tags = {
"*" : "*"
}
Expand Down
Loading