iac_modules/config/sit/instances.yaml
Haitao Pan c2020da184 feat(iac): Refactor structure and support multi-environment config loading
- Add config/sit and other environment-specific config directories
- Refactor deploy.py to support CONFIG_PATH environment variable
- Enable automatic merging of config/*/*.yaml files
- Enhance run.sh with Pulumi/Ansible/Terraform initialization checks
- Add inventory.py to dynamically generate Ansible hosts
- Improve ec2_instance.py with modular instance creation
- Organize base.yaml, vpc.yaml and related config files"
2025-03-29 11:09:24 +08:00

33 lines
748 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

instances:
- name: master-1
ami: ami-0c2b8ca1dad447f8a
type: t3.micro
disk_size_gb: 20
subnet: public-subnet-1
lifecycle: spot # 可选: ondemand默认或 spot
ttl: 1h # 可选: 自动标记 TTL仅作为标识不自动销毁
- name: slave-1
ami: ami-0c2b8ca1dad447f8a
type: t3.micro
disk_size_gb: 20
subnet: private-subnet-1
lifecycle: spot
ttl: 1h
- name: agent-1
ami: ami-0c2b8ca1dad447f8a
type: t3.micro
disk_size_gb: 20
subnet: private-subnet-1
lifecycle: spot
ttl: 1h
- name: agent-2
ami: ami-0c2b8ca1dad447f8a
type: t3.micro
disk_size_gb: 20
subnet: private-subnet-1
lifecycle: spot
ttl: 1h