Access VPC Private subnet Public subnet Amazon Route 53 (サブドメイン登録) Cloudflare (親ドメイン登録) EC2 Instance Windows11 PC AWS IAM Identity Center AWS Verified Access VPC Public subnet Private subnet PostgreSQL Instance IAM Identity Center Cloudflare Route 53 ※ VPC EC2 IAM Identity Center VPC RDS (PostgreSQL) Public Hosted zone
C:¥Users¥k-miy¥.ssh>ssh -i MyEC2Key.pem [email protected] 0b3273cacae75d57f.aws.kmiya.work The authenticity of host '10-0-2-44.vae-0b3273cacae75d57f.aws.kmiya.work (2406:da14:fa3:2b01::a00:22c)' can't be established. ED25519 key fingerprint is SHA256:S+r+jgjS6MS7nU6J3ulUtsKADlVdg/avTNvqVb3b8P4. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10-0-2-44.vae- 0b3273cacae75d57f.aws.kmiya.work' (ED25519) to the list of known hosts. Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1018-aws x86_64) : : To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@ip-10-0-2-44:~$ C:¥Users¥k-miy>psql --host=vae-0274e92e7a441a552.vai- 05b2396c145de0d2b.prod.verified-access.ap-northeast-1.amazonaws.com -- port=5432 --username=postgres --password --dbname=db01 Password: psql (16.6) SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off) Type "help" for help. db01=>