Terraform Basics
This will be a brief overview on how to create resources in AWS with Terraform
Set Access Credentials for AWS
Configure your AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
with the following
Refer to how to access AWS on notes for getting an Access Key and Secret
This example terraform code should give you an idea of how to create resources in this case we'll be making an EC2 Instance
main.tf
main.tf
is the main file terraform runs by default. Create the main.tf
file fill it with your Terraform code. Afterwards run: terraform init
followed by terraform apply
to create your resources.
Last updated