見出し画像

Hats off to the convenience of AWS EC2 user data

My name is Kotaro Nakane, and I work as a director at Definer Inc.

This time, I would like to talk about AWS EC2 user data.

I want to execute OS commands quickly.

When developing, there are many situations where you want to execute simple OS commands at server startup, although not to the extent of using OS configuration management tools.
For example, when developing with AWS, you may want to do something like the following
・You want to give a unique host name to the Auto Scaling server (e.g., assigning the startup time to the host name).
・You want to register an ECS cluster in EC2

In such cases, user data

We often use AWS EC2 user data in such cases.
In the case of the AWS console, just list the command in the user data field!
For Terraform, just specify an external file!

You can also see the execution log of the user data in the following.

/var/log/cloud-init-output.log

It is very easy to use, so please try to make use of user data when you use AWS.

For those who have read this

If you have read this far, I am sure we share some values, and I would be very happy if we could talk casually first.
Definer, Inc. is looking for people to work with.

株式会社Definerでは一緒に働く仲間を募集しています

人事・経営・sennryaku
ソフトウェアエンジニア
カジュアル面談です

開発
ソフトウェアエンジニア
フルスタックエンジニア
プロダクトマネージャー(PdM)

ビジネス
人事・経営・sennryaku
ビジネスオープンポジション
インサイドセールス(マネジメント)

その他
カジュアル面談です

この記事が気に入ったらサポートをしてみませんか?