Skip to content

sn0wm1ku/alpine-pma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-pma

Untitled phpMyAdmin with AWS tools inside. Design for connecting isolated RDS DB.

Pre-requesties

  • RDS with Bastion (EC2) in isolated Subnet
  • SSM permission for Bastion
  • .aws/config and .aws/credential setup

Setup

Docker Commands

Pulling image

docker image pull sn0wm1ku/alpine-pma:latest

Running container

docker run --name alpine-pma --env-file .env -v ~/.aws:/root/.aws -p80:80 -d sn0wm1ku/alpine-pma

Environment Variable

  • AWS_PROFILE The Name of Profile to be use with Tunneling
  • RDS_TYPE Instance or Cluster Weather the RDS is an Instance Type (RDS) or Cluster Type (RDS Aurora)
  • PMA_HOST/PMA_HOSTS Endpoint for RDS, since tunneling, suggest setting to 127.0.0.1
  • PMA_VERBOSE/PMA_VERBOSES Alias for the RDS.
  • PMA_PORT/PMA_PORTS Port for RDS.

Mount Volume

  • ~/.aws Please Mount this to the /root folder of container.