Skip to content

dylanops/aws-terraform-magento2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make sure you did make things

  • Create VPC
  • Create Internet Gateway -> Attack to VPC
  • Create Public Subnet / Private Subnet
  • Create Public Route Table / Private Route Table -> Link to Subnet, Internet Gateway
  • Create Security Groups
  • Create Network ACLs

How to use

cd prod
cp prod.tfvars.example prod.tfvars
terraform init
terraform plan -var-file=prod.tfvars
terraform apply -var-file=prod.tfvars

How to configuration ssh

# Move private key to ~/.ssh/
cp private_key ~/.ssh

# Edit ssh config
Host bastion
    HostName <bastion_public_ip>
    User ubuntu
    IdentityFile ~/.ssh/private_key
Host service
    HostName <service_private_ip>
    User ubuntu
    IdentityFile ~/.ssh/private_key
    ProxyCommand ssh -W %h:%p bastion

# ssh to services
ssh bastion
ssh service

How to ssh to rds

1, ssh to magento instance
2, connect to mysql
mysql -u'admin' -p'admin123' -h'rds-endpoint'

About

AWS terraform for magento 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%