Skip to content

Terraform templates for AWS and other cloud services.

Notifications You must be signed in to change notification settings

memor24/terraform-multicloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

docker run -d localstack/localstack
#or
localstack start

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

tflocal apply
tflocal state list

Make sure to clean up the resources:

tflocal destroy

localstack stop
#or
docker rm [container_id]

About

Terraform templates for AWS and other cloud services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published