-
Notifications
You must be signed in to change notification settings - Fork 6
/
ec2.toml
36 lines (29 loc) 路 1.31 KB
/
ec2.toml
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
34
35
36
# example config, update this for your aws account
default_profile = "syd"
# tags added to ec2 instances during launch
additional_tags = { Owner = "alice@little.co", Project = "example project" }
[syd]
region = "ap-southeast-2"
key_name = "my-key"
iam_instance_profile_arn = "arn:aws:iam::123456789012:instance-profile/ec2_my_default"
vpc = { name = "public A", subnet = "subnet-12345678", security_group = "sg-12345678901234567" }
kms_key_id = "arn:aws:kms:ap-southeast-2:123456789012:key/abcdef"
# include these accounts when listing AMIs
describe_images_owners = "self"
volume_size = 100
launch_template = "lt-000001"
[syd.ssm]
# log output of ssm commands to this location
s3bucket = "logs"
s3prefix = "ssm-command"
[us]
region = "us-east-1"
key_name = "my-key-us"
iam_instance_profile_arn = "arn:aws:iam::123456789012:instance-profile/ec2_my_default"
vpc = { name = "private B", subnet = "subnet-87654321", security_group = ["sg-0123456","sg-7123456789"], associate_public_ip_address = true }
# include my account and the Canonical (Ubuntu) account when listing AMIs
describe_images_owners = ["self", "099720109477"]
# show only the ubuntu focal images
describe_images_name_match = "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64"
[no-region]
# no region specified so will default to $AWS_DEFAULT_REGION, and then ~/.aws/config