Skip to main content

Posts

Showing posts with the label ec2 instance in a code

Terraform sample project - create an EC2 web instance within AWS cloud

Contents of main project file - mainproject.tf ############################################################### # A Mini project file to create a single instance using # variables and paremeters listed in terraform.tfvars file. # Please make sure that both files have correct extensions and # live within same directory for terraform to run without any # additional parameters. A typical execution plan will include # following commands or steps; # terraform init  # terraform plan  # terraform apply  # terraform destroy ############################################################### ############################################################### # Variables used in this script ############################################################### variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_private_key_path" {} variable "aws_key_name" {} variable "aws_instance_ami" {} variable ...