Commit 39bcf73d authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

First commit

parents
# Wedoops AWS EC2 Key
This basic module just generates an AWS EC2 key for Wedoops
# Inputs
project = Name for the key
tags = Tags
\ No newline at end of file
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpR+ALkFzo7DupEEH/CcWaGHbQIYSqaEfbA5vAHFHf4h+xu4vvC0a6HVaM7q+bhDoiaySaDfkjDhbKLlZvjAIENeBoz2Ycq2luqfdB+ASOA79A60OT3bAszlbiTuSMWXZJ1RCvOgahSLbQTWY6AFdhtzjg/JTPN6o99ZKNnsGiaoVG3gn8+E0T5urOKfSBvPVIDhafdaFa4gqfJDRqHTAQN2AZOMP95FkLhms4VvV7edsCosDD9suxzd+hmzT7sCf5sXrM58aSbfOfQ2TxHsakP9r2xXGTZOiZGAIbnLo30fsNd2x+TZjdhcGAzNvKE31m2AomgW+NGKYB6/LlQTEX ernesto@macpro
resource "aws_key_pair" "admin" {
key_name = var.project_name
public_key = file("${path.module}/files/wdps.pub")
tags = var.tags
}
\ No newline at end of file
output "name" {
value = aws_key_pair.admin.id
description = "Key Used for EC2"
}
output "fingerprint" {
value = aws_key_pair.admin.fingerprint
description = "Key Fingerprint for EC2"
}
output "arn" {
value = aws_key_pair.admin.arn
description = "Key ARN for EC2"
}
\ No newline at end of file
variable "project_name" {
description = "Name of the project. It will be used as a base for all the names"
type = string
}
variable "tags" {
description = "Tags applied to the resources created"
type = object({
ServiceOwner = string
ServiceSupport = string
ServiceName = string
Environment = string
})
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment