Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG8804aa6c07a0: automation: extract strings to constants
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | contrib/automation/hgautomation/aws.py (8 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
550a861c1a01 | 6dfa46e1f4b4 | Gregory Szorc | Jul 22 2019, 9:55 PM |
'm5d', | 'm5d', | ||||
'r5d', | 'r5d', | ||||
'r5ad', | 'r5ad', | ||||
'x1', | 'x1', | ||||
'z1d', | 'z1d', | ||||
} | } | ||||
AMAZON_ACCOUNT_ID = '801119661308' | |||||
DEBIAN_ACCOUNT_ID = '379101102735' | DEBIAN_ACCOUNT_ID = '379101102735' | ||||
UBUNTU_ACCOUNT_ID = '099720109477' | UBUNTU_ACCOUNT_ID = '099720109477' | ||||
WINDOWS_BASE_IMAGE_NAME = 'Windows_Server-2019-English-Full-Base-2019.07.12' | |||||
KEY_PAIRS = { | KEY_PAIRS = { | ||||
'automation', | 'automation', | ||||
} | } | ||||
SECURITY_GROUPS = { | SECURITY_GROUPS = { | ||||
'linux-dev-1': { | 'linux-dev-1': { | ||||
'description': 'Mercurial Linux instances that perform build/test automation', | 'description': 'Mercurial Linux instances that perform build/test automation', | ||||
one. | one. | ||||
""" | """ | ||||
ec2client = c.ec2client | ec2client = c.ec2client | ||||
ec2resource = c.ec2resource | ec2resource = c.ec2resource | ||||
ssmclient = c.session.client('ssm') | ssmclient = c.session.client('ssm') | ||||
name = '%s%s' % (prefix, 'windows-dev') | name = '%s%s' % (prefix, 'windows-dev') | ||||
image = find_image(ec2resource, | image = find_image(ec2resource, AMAZON_ACCOUNT_ID, WINDOWS_BASE_IMAGE_NAME) | ||||
'801119661308', | |||||
'Windows_Server-2019-English-Full-Base-2019.07.12') | |||||
config = { | config = { | ||||
'BlockDeviceMappings': [ | 'BlockDeviceMappings': [ | ||||
{ | { | ||||
'DeviceName': '/dev/sda1', | 'DeviceName': '/dev/sda1', | ||||
'Ebs': { | 'Ebs': { | ||||
'DeleteOnTermination': True, | 'DeleteOnTermination': True, | ||||
'VolumeSize': 32, | 'VolumeSize': 32, |