This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # aws_instance.instance: | |
| resource "aws_instance" "instance" { | |
| ami = "ami-042e8287309f5df03" | |
| count = 3 | |
| associate_public_ip_address = true | |
| instance_type = "t2.micro" | |
| key_name = "ansible" | |
| source_dest_check = true | |
| tags = { | |
| "Name" = "Client${count.index}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Configure ssh for auto without necessat login | |
| cd .ssh/ | |
| nano id_rsa | |
| # Copy your key.pem for id_rsa | |
| chmod 400 id_rsa | |
| nano id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SERVER: | |
| mkdir docker | |
| cd docker | |
| nano Dockerfile | |
| #*******************************************************************************# | |
| #NEEDS TO BE A 18.04 VERSION# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Inspired by https://docs.requarks.io/install/ubuntu ## | |
| apt update && apt upgrade -y | |
| apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common openssl -y | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Inspired by jdmedeiros ## | |
| sudo apt update | |
| sudo apt upgrade -y | |
| sudo apt install -y xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils | |
| sudo apt install -y xrdp chromium-browser filezilla |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SERVER: | |
| mkdir docker | |
| cd docker | |
| nano Dockerfile | |
| #*******************************************************************************# | |
| #NEEDS TO BE A 18.04 VERSION# |