Use the following instruction to deploy single server in own VPC on AWS cloud
- Download and install latest terraform binary
- Clone the code from repository
- Create own
variable.tf
file based onvariable.tf.example
. Without that file scenario is not valid. - Put into
variable.tf
, variablessh_public_key
your public key. - Define AWS region to work with.
- Another variables can be left as they are without any changes.
- When scenario is ready, at first run
terraform init
to download terraform dependencies - Run
terraform plan
to see what will be updated or added. - Run
terraform apply
to apply the scenario
PS. The command terraform plan
can use used in such way only when it is available globally, it was installed into system and global path is updated.
At the end terraform will show public IP address of server. Please use the command:
ssh ubuntu@<public ip>
to get remove access to the server.
...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
instance_ip_addr = 3.15.237.46