Skip to content

Instantly share code, notes, and snippets.

@pmatsinopoulos
Created August 27, 2023 13:14
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/0be6029a9b2fbee75719a2325bf75dce to your computer and use it in GitHub Desktop.
Save pmatsinopoulos/0be6029a9b2fbee75719a2325bf75dce to your computer and use it in GitHub Desktop.
AWS Private and Public Subnets - ec2_key_pair.tf
resource "aws_key_pair" "private_public_subnets" {
key_name = local.project
public_key = file("${path.module}/id_rsa.pub")
tags = {
"Name" = local.project
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment