-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.example
33 lines (32 loc) · 2.17 KB
/
config.yaml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
region: eu-west-2 # AWS region
subnet_id: subnet-12345678 # Subnet ID for the instances
efs_ip: 172.12.34.255 # IP address for the EFS in subnet
sagemaker_studio_domain_id: d-abcdefghijkl # SageMaker Studio domain ID
security_group_ids:
- sg-0123456789abcdef0 # Security group ID (include security-group-for-outbound-nfs)
iam_instance_profile: roleWithAmazonSSMManagedInstanceCore # IAM instance profile
instance_types:
t2.micro: 0.0116 # Instance type and cost per hour
t3.medium: 0.0418 # Instance type and cost per hour
default_tags:
ManagedBy: ec2-slackbot # Optional default tags for the instances and volumes
check_interval_seconds: 43200 # Interval for periodic checks in seconds
instance_warning_days: 7 # Days before warning about long-running instances
large_instance_cost_threshold: 0.5 # Cost threshold for large instances
large_instance_warning_days: 1 # Days before warning about large instance costs
max_volume_size: 100 # Max EBS volume size in GiB
amis:
Ubuntu 22.04: # AMI name
id: ami-09627c82937ccdd6d: # AMI ID
startup_script: | # Startup script for the instance
# Install pip, build-essential, python3-dev and unzip
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install python3-pip build-essential python3-dev unzip -y
# Install Docker engine
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
sudo usermod -aG docker $USER
sudo systemctl enable docker