Skip to content

memor24/terraform-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure as Code

In this repo, I will be adding infrastructure as code templates using Terraform for each of the AWS main services like IAM, S3, EC2, VPC, RDS, DynamoDB, Lambda.

terraform init

To clean the code syntax, basic validation and detailed planning, use:

terraform fmt
terraform validate
terraform plan

To create the infrastructure as planned, use:

terraform apply

To delete (e.g. for cost control) and completely remove the infrastructure, use:

terraform destroy

Note

If you don't want to deploy them directly to AWS, you may also use Local Stack that helps with deploying to a localized AWS environment. First install a docker container of localstack, then launch it in a seperate terminal before terraform plan/apply.

localstack start

In this case, you want to use tflocal command instead of terraform command to avoid credentials related complications:

tflocal apply
tflocal destroy

About

Terraform templates for AWS services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages