terraform-aws-laravel
Production-ready AWS infrastructure for Laravel applications using Terraform.
File Explorer
- announce-release.yml.example
- checkov.yml
- copilot-setup-steps.yml.example
- dependabot-auto-merge.yml
- deploy.yml.example
- fix-code-style.yml.example
- hadolint.yml
- pest.yml.example
- phpstan.yml.example
- release.yml.example
- shellcheck.yml
- tfsec.yml
- update-changelog.yml.example
- dependabot.yml
- dependabot.yml.example
- pull_request_template.md
- release.yml
- cover.jpg
- example.com.conf
- no-ssl.example.com.conf
- .default.conf
- no-ssl.default.conf
- .http-auth.conf
- .laravel-octane.conf
- health.conf
- laravel.conf
- misc.conf
- requests.conf
- resource_timing.conf
- custom_errors.conf
- security_file_access.conf
- web_performance_filename-based_cache_busting.conf
- web_performance_svgz-compression.conf
- character_encodings.conf
- media_types.conf
- content-security-policy.conf
- cross-origin-policy.conf
- permissions-policy.conf
- referrer-policy.conf
- server_software_information.conf
- strict-transport-security.conf
- x-content-type-options.conf
- x-frame-options.conf
- certificate_files.conf
- ocsp_stapling.conf
- policy_balanced.conf
- policy_strict.conf
- ssl_engine.conf
- cache-control.conf
- cache-file-descriptors.conf
- cache_expiration.conf
- compression.conf
- content_transformation.conf
- pre-compressed_content_brotli.conf
- pre-compressed_content_gzip.conf
- htpasswd
- mime.types
- nginx.conf
- README.md
- php-fpm.conf
- php.ini
- .profile
- Dockerfile
- entrypoint.sh
- README.md
- supervisord-queue-worker.conf
- supervisord-scheduler.conf
- supervisord-web-octane-frankenphp.conf
- supervisord-web-octane-roadrunner.conf
- supervisord-web-octane-swoole.conf
- supervisord-web.conf
- .gitignore
- example.tfvars
- main.tf
- outputs.tf
- scheduled-stop.tf
- user_data.sh
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- access-analyzer.tf
- aws-config.tf
- backup-audit.tf
- backup.tf
- guardduty.tf
- macie.tf
- outputs.tf
- README.md
- security-hub.tf
- variables.tf
- vpc-flow-logs.tf
- autoscaling.tf
- cluster.tf
- locals.tf
- main.tf
- outputs.tf
- services.tf
- task-definitions.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- versions.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- iam-bedrock.tf
- iam-ecs.tf
- iam-github.tf
- iam-laravel.tf
- kms.tf
- outputs.tf
- secrets-dockerhub.tf
- variables.tf
- main.tf
- outputs.tf
- variables.tf
- bucket-alb-logs.tf
- bucket-app-filesystem.tf
- bucket-cloudtrail.tf
- bucket-config.tf
- bucket-macie-findings.tf
- bucket-vpc-flow-logs.tf
- cloudfront.tf
- main.tf
- outputs.tf
- variables.tf
- .gitignore
- .terraform-version
- .terraform.lock.hcl
- generate_diagram.sh
- infrastructure_diagram.py
- main.tf
- outputs.tf
- variables.tf
- versions.tf
- .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
jsDelivrjsDelivr 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 ▼
aws logs
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 ▼
aws rds
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 ▼
aws
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 ▼
composer
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 ▼
docker build
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 ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
mysql
View Details ▼
mysql
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 ▼
php artisan
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 ▼
ssh
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 ▼
terraform apply
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 ▼
terraform init
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 ▼
terraform output
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 ▼
terraform plan
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 ▼
terraform
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
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:
