Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to boot EC2 with preset hostname?

To just set the hostname (without Route53), you can use cloud-init configuration in the user-data

#cloud-config
hostname: mynode
fqdn: mynode.example.com
manage_etc_hosts: true

You can use the user-data function of the console and/or API to provide a bash script which will be executed on first boot. This script can set the hostname, create a DNS record, and any other actions you desire.

Tags:

Amazon Web Services

Amazon Ec2

Amazon Route53

Related

Why isn't net.ipv4.tcp_rfc1337 enabled by default? Systemd execute command after start limit reached DH GEX group out of range Seeking inside file performance under BTRFS with LZO compression How does one check huge files identity if hashing is CPU bound? What are the implications of converting all my groups to universal groups? Bad ssh config on remote server. Cannot login in Why does OpenVPN give the error: "unsupported certificate purpose" for an intermediate certificate? Can AWS CodeDeploy execute powershell scripts? Non-interactive (silent) install of MySQL 5.7 on Ubuntu 16.04 LTS Do I need an antivirus program in each virtual machine? DNS issue with Failover IP from Hetzner

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy