aws configure
# AWS Access Key ID: YOUR_ACCESS_KEY
# AWS Secret Access Key: YOUR_SECRET_KEY
# Default region: ap-northeast-1
# Default output format: json.envファイルに追加:
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_DEFAULT_REGION=ap-northeast-1GitHubリポジトリの自動クローンを利用する場合:
- GitHub Settings > Developer settings > Personal access tokens にアクセス
- "Generate new token (classic)" をクリック
- 必要なスコープを選択:
repo- プライベートリポジトリの場合public_repo- パブリックリポジトリのみの場合
- トークンを生成し、
.envファイルに設定:
TF_VAR_github_pat=ghp_xxxxxxxxxxxxxxxxxxxx
TF_VAR_github_username=your-username
TF_VAR_github_email=your-email@example.com
TF_VAR_github_repo_url=https://github.com/username/repo.gitterraform.tfvarsまたは.envで以下の設定をカスタマイズできます。
| 変数名 | デフォルト値 | 説明 |
|---|---|---|
project_name |
spot-dev |
プロジェクト名(リソースの命名に使用) |
instance_type |
c7g.4xlarge |
インスタンスタイプ |
spot_max_price |
"" |
スポット価格上限(空の場合オンデマンド価格) |
root_volume_size |
100 |
ルートボリュームサイズ(GB) |
auto_terminate_hours |
2 |
自動削除までの時間(1-24時間) |
enable_jetbrains_gateway |
true |
JetBrains Gateway用設定 |