Skip to content

aodin/aws-ipv6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS IPv6

OpenTofu 1.9.0 config for an IPv6 capable EC2 instance on AWS.

Official AWS documentation on IPv6 EC2 instances

Usage

  1. Install OpenTofu

  2. Run tofu init

  3. Create a key pair on AWS named ipv6_key or replace the key_name variable with an existing key pair.

  4. Run tofu plan -out=plan.tmp

  5. Run tofu apply "plan.tmp"

You can then connect to the instance with either IPv4 or IPv6. To force IPv6: ssh ubuntu@<IP/Host> -6 -i ipv6_key.pem

If you are unable to connect to the server via IPv6, check that your current internet connection supports IPv6.

  1. If you'd like to destroy the created infrastructure, run tofu destroy

Note

Since this is demo project, the tofu state files are in the .gitignore. These files should committed in a production repository.

Happy hacking!

aodin, 2018-2025

About

OpenTofu 1.9.0 example AWS EC2 instance with IPv6

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages