https://github.com/aodin/aws-ipv6
OpenTofu 1.9.0 example AWS EC2 instance with IPv6
https://github.com/aodin/aws-ipv6
aws ipv6 opentofu opentofu-aws
Last synced: 2 months ago
JSON representation
OpenTofu 1.9.0 example AWS EC2 instance with IPv6
- Host: GitHub
- URL: https://github.com/aodin/aws-ipv6
- Owner: aodin
- License: mit
- Created: 2018-05-17T01:07:24.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T21:15:45.000Z (4 months ago)
- Last Synced: 2025-01-30T22:26:03.256Z (4 months ago)
- Topics: aws, ipv6, opentofu, opentofu-aws
- Language: HCL
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AWS IPv6
====[OpenTofu 1.9.0](https://opentofu.org) config for an IPv6 capable EC2 instance on AWS.
[Official AWS documentation on IPv6 EC2 instances](https://docs.aws.amazon.com/vpc/latest/userguide/create-vpc.html#create-vpc-cli)
### Usage
1. Install [OpenTofu](https://opentofu.org/docs/intro/install/)
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@ -6 -i ipv6_key.pem`
If you are unable to connect to the server via IPv6, [check that your current internet connection supports IPv6](https://test-ipv6.com).
6. 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