Skip to content

Commit

Permalink
Add key pair to example
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Aug 6, 2024
1 parent 26f9d4e commit 18b65da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ch7/tofu/live/vpc-ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module "public_instance" {
vpc_id = module.vpc.vpc.id
subnet_id = module.vpc.public_subnet.id

# TODO: fill in your EC2 key pair name
key_name = "<YOUR_KEYPAIR_NAME>"

}

module "private_instance" {
Expand All @@ -35,4 +38,6 @@ module "private_instance" {
vpc_id = module.vpc.vpc.id
subnet_id = module.vpc.private_subnet.id

# TODO: fill in your EC2 key pair name
key_name = "<YOUR_KEYPAIR_NAME>"
}

0 comments on commit 18b65da

Please sign in to comment.