Skip to content

Instantly share code, notes, and snippets.

@pmatsinopoulos
Created August 28, 2023 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatsinopoulos/6742e89d6c220305f465256b11c7e64a to your computer and use it in GitHub Desktop.
Save pmatsinopoulos/6742e89d6c220305f465256b11c7e64a to your computer and use it in GitHub Desktop.
AWS Private and Public Subnets - ec2_keypair_internal.tf
resource "aws_key_pair" "internal_to_vpc" {
key_name = "${local.project}-internal"
public_key = file("${path.module}/id_rsa_internal.pub")
tags = {
"Name" = "${local.project}-internal"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment