terraform-aws-laravel

(★ 58)

Production-ready AWS infrastructure for Laravel applications using Terraform.

File Explorer

  • .checkov.yaml
  • .dockerignore
  • .editorconfig
  • .envrc
  • .gitattributes
  • .gitignore
  • .tflint.hcl
  • AGENTS.md
  • CLAUDE.md
  • LICENSE
  • Makefile
  • Makefile.config.example
  • MIGRATION.md
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

aws logs

View Details ▼

Interact with log files from various AWS services.

aws logs list-log-groups

List log groups:

aws logs tail {{log_group_name}} --follow

Continuously poll logs of a CloudWatch log group:

aws logs tail {{log_group_name}} --filter-pattern {{pattern}}

Tail the logs of a CloudWatch log group based on a filter:

🔍

aws rds

View Details ▼

Use AWS Relational Database Service, a web service for setting up, operating, and scaling relational databases.

aws rds {{subcommand}} help

Display help for a specific RDS subcommand:

aws rds stop-db-instance --db-instance-identifier {{instance_identifier}}

Stop instance:

aws rds start-db-instance --db-instance-identifier {{instance_identifier}}

Start instance:

🔍

aws

View Details ▼

The official CLI tool for Amazon Web Services.
Some subcommands such as `s3` have their own usage documentation.

aws configure wizard

Configure the AWS Command-line:

aws configure sso

Configure the AWS Command-line using SSO:

aws sts get-caller-identity

Get the caller identity (used to troubleshoot permissions):

🔍

composer

View Details ▼

A package-based dependency manager for PHP projects.

composer init

Interactively create a `composer.json` file:

composer require {{user/package}}

Add a package as a dependency for this project, adding an entry to `composer.json`:

composer install

Install all the dependencies in this project's `composer.json` and create `composer.lock`:

🔍

docker build

View Details ▼

Build an image from a Dockerfile.

docker build .

Build a Docker image using the Dockerfile in the current directory:

docker build {{github.com/creack/docker-firefox}}

Build a Docker image from a Dockerfile at a specified URL:

docker build {{[-t|--tag]}} {{name:tag}} .

Build a Docker image and tag it:

🔍

docker run

View Details ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

mysql

View Details ▼

The MySQL tool.

mysql {{database_name}}

Connect to a database:

mysql {{[-u|--user]}} {{user}} {{[-p|--password]}} {{database_name}}

Connect to a database, user will be prompted for a password:

mysql {{[-h|--host]}} {{database_host}} {{database_name}}

Connect to a database on another host:

🔍

php artisan

View Details ▼

Laravel's Artisan command-line interface.

php artisan serve

Start PHP's built-in web server for the current Laravel application:

php artisan tinker

Start an interactive PHP command-line interface:

php artisan make:model {{ModelName}} --all

Generate a new Eloquent model class with a migration, factory, and resource controller:

🔍

ssh

View Details ▼

Secure Shell is a protocol used to securely log onto remote systems.
It can be used for logging or executing commands on a remote server.

ssh {{username}}@{{remote_host}}

Connect to a remote server:

ssh {{username}}@{{remote_host}} -i {{path/to/key_file}}

Connect to a remote server with a specific [i]dentity (private key):

ssh {{username}}@10.0.0.1 -p {{2222}}

Connect to a remote server with IP `10.0.0.1` and using a specific [p]ort (Note: `10.0.0.1` can be shortened to `10.1`):

🔍

terraform apply

View Details ▼

Create or update infrastructure according to Terraform configuration files.

terraform apply

Create or update infrastructure:

terraform apply -auto-approve

Create or update infrastructure, skipping interactive approval:

terraform apply {{path/to/file.tfplan}}

Apply a plan file:

🔍

terraform init

View Details ▼

Initialize a new or existing Terraform working directory.

terraform init

Initialize the current working directory:

terraform init -upgrade

Initialize and upgrade modules and providers to the latest allowed versions:

terraform init -reconfigure

Initialize and reconfigure the backend, ignoring any saved configuration:

🔍

terraform output

View Details ▼

Export structured data about your Terraform resources.

terraform output

Display all outputs for the root module:

terraform output {{name}}

Output only a value with specific name:

terraform output -raw

Convert the output value to a raw string (useful for shell scripts):

🔍

terraform plan

View Details ▼

Generate and show Terraform execution plans.

terraform plan

Generate and show the execution plan in the current directory:

terraform plan -destroy

Show a plan to destroy all remote objects that currently exist:

terraform plan -refresh-only

Show a plan to update the Terraform state and output values:

🔍

terraform

View Details ▼

Create and deploy infrastructure as code to cloud providers.

terraform init

Initialize a new or existing Terraform configuration:

terraform validate

Verify that the configuration files are syntactically valid:

terraform fmt

Format configuration according to Terraform language style conventions:

🔍

vim

View Details ▼

Vim (Vi IMproved), a command-line text editor, provides several modes for different kinds of text manipulation.
Pressing `<i>` in normal mode enters insert mode. Pressing `<Esc>` goes back to normal mode, which enables the use of Vim commands.
See also: `vimdiff`, `vimtutor`, `nvim`, `gvim`.

vim {{path/to/file}}

Open a file:

vim +{{line_number}} {{path/to/file}}

Open a file at a specified line number:

<:>help<Enter>

View Vim's help manual:

// repository documentation