URLs:
Relevant DNS Actions:
- REGISTERIPCONTROL: register the EC2 hostname in IPControl (BMO’s DNS system)
- UNREGISTERIPCONTROL: remove the hostname from IPControl/DNS
- REGISTERALLL: registers in SNOW, IPControl, and Ansible in one shot
Input parameter:
- COMPUTERNAMES:
- each server requires 6 fields ending with @
- COMPUTER_IP,COMPUTER_NAME,INSTANCEDOMAIN,AppCatID,Region,@
- INSTANCEDOMAIN:
- Non-Prod: devhcloud.bmogc.net
- Prod: hcloud.bmogc.net
- Region:
- ca-central-1 or
- us-east-1
- INSTANCEDOMAIN:
- example: 10.164.93.175,tcacaueslapp001,devhcloud.bmogc.net,86039,us-east-1,@,10.164.93.224,tcacaueslapp002,devhcloud.bmogc.net,86039,us-east-1,@
Cross-Account Execution (if needed):
- choose Multi-Account and Region instead of Simple execution
- for Automation Execution Role:
- Legacy accounts: bmohc-aws-AutomationRole
- BIAN accounts: CT-SsmDocument-ReadWrite-Execution-Role
How to:
- Login to https://bmofg.awsapps.com/start
- BMO Shared Services (111343967408)
- AWS-COMM-SHR-IAAS-TREO-Role
- Canada Central (ca-central-1)
- AWS [Systems Manager]
- [Documents] - [All documents]: search [ec2ad] ec2ad:
- Excute automation: Execute automation runbook
- Simple execution
- Rate control
- Multi-account and Region
- Manual execution
- Input parameters:
- AutomationAssumeRole: bmohc-aws-AutomationRole
- SERVICETICKET: INC278212-SSM
- EMAIL: kianming.aau@bmo.com
- ACTION: REGISTERIPCONTROL
- COMPUTERNAMES: 10.164.93.175,tcacaueslapp001,devhcloud.bmogc.net,86039,us-east-1,@,10.164.93.224,tcacaueslapp002,devhcloud.bmogc.net,86039,us-east-1,@
- CloudWatch alarm - optional
- Alarm name: null
- Continue automation if alarm status is unavailable: unchecked
- Tags - optional
- Click [Execute]
Execution email:
[[green:Result of EC2AD - SUCCESS - REGISTERIPCONTROL - Service Ticket INC278212-SSM]]
Registering [10.164.93.175]/[tcacaueslapp001]
------[INFO] Successfully registered [tcacaueslapp001] with IP [10.164.93.175] in IPControl. Details: {'result': '10.164.93.175'}