Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Details. User Data for EC2 Deploy Docs #24

Open
1 task
mlajkim opened this issue Sep 18, 2023 · 0 comments
Open
1 task

Advanced Details. User Data for EC2 Deploy Docs #24

mlajkim opened this issue Sep 18, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@mlajkim
Copy link
Contributor

mlajkim commented Sep 18, 2023

Background

When you create an EC2 instance, you can set User Data of Advanced Details Section of EC2 Creation page.
If the command above can be applied successfully, it will be really useful

| Advanced Details.User data | [Advanced Details User Data](#advanced-details-user-data) |

### Advanced Details User Data
```sh

#!/bin/bash
sudo bash

# Install Docker
sudo yum update
sudo yum search docker
sudo yum info docker
sudo yum install docker

sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker

sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo systemctl status docker.service

# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
chmod +x ./kubectl
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc

# Install k9s
curl -sS https://webinstall.dev/k9s | bash
source ~/.config/envman/PATH.env

TODOs

  • Test and Document Advanced Details.User data
@mlajkim mlajkim added the documentation Improvements or additions to documentation label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant