Skip to content

Commit

Permalink
imported acm cert
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocicerchia committed Dec 31, 2024
1 parent dcd53f4 commit 244bd33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sys/terraform/elb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "aws_lb_listener" "elblistener80" {

resource "aws_lb_listener" "elblistener443" {
load_balancer_arn = aws_lb.elb.arn
certificate_arn = "arn:aws:acm:eu-west-1:478389220392:certificate/2225440f-8847-4834-a90b-4b81a0105955"
certificate_arn = aws_acm_certificate.cert.arn
port = 443
default_action {
type = "fixed-response"
Expand Down
6 changes: 6 additions & 0 deletions sys/terraform/import.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ import {
to = aws_iam_user_policy.lb_ro
id = "github_action_deploy:GitHubActionsDeploy"
}

# ACM
import {
to = aws_acm_certificate.cert
id = "arn:aws:acm:eu-west-1:478389220392:certificate/2225440f-8847-4834-a90b-4b81a0105955"
}
5 changes: 0 additions & 5 deletions sys/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ variable "ecr_image_tag_php" {
type = string
}

variable "elb_certificate_arn" {
description = "Specifies the ARN of the Certificate."
type = string
}

variable "environment" {
description = "The Environment"
type = string
Expand Down

0 comments on commit 244bd33

Please sign in to comment.