Project >> Security >> API token >> Generate API token
user_data.yml
ssh.tf
'variable.tf'
location
server_type
kubernetes_package_version
kubernetes_version
k8s_repo_version
eth_name
{
sudo yum -y groupinstall "Development Tools"
sudo yum -y install openssl-devel bzip2-devel libffi-devel xz-devel wget
cd /usr/src/
sudo wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
sudo tar -xvzf Python-3.8.12.tgz
cd Python-3.8.12/
./configure --enable-optimizations
sudo make altinstall
python3.8 --version
}
{
cd
python3.8 -m venv project
source project/bin/activate
pip install --upgrade pip
pip install ansible
}
{
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install kubernetes.core
}
(it will prompt you for API_TOKEN)
terraform init
terraform plan
terraform apply