Skip to content

Commit

Permalink
add ssh certificate config
Browse files Browse the repository at this point in the history
  • Loading branch information
ER-Radi committed Jan 31, 2024
1 parent 734ec84 commit cf76083
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ output "server_public_ip" {
resource "aws_instance" "ec2-staging" {
ami = var.ami_id
instance_type = var.instance_type
key_name = var.key_pair
availability_zone = var.ec2_availability_zone

network_interface {
Expand Down
1 change: 1 addition & 0 deletions terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ subnet_id = "subnet-d5a1d598"
ami_id = "ami-072056ff9d3689e7b"
instance_type = "t2.micro"
ec2_availability_zone = "eu-west-3c"
key_pair = "parlemonde-staging"
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ variable "ec2_availability_zone" {
description = "EC2 Availability Zone"
type = string
}

variable "key_pair" {
description = "EC2 staging key pair"
type = string
}

0 comments on commit cf76083

Please sign in to comment.