Skip to content

Commit 244bd33

Browse files
imported acm cert
1 parent dcd53f4 commit 244bd33

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

sys/terraform/elb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ resource "aws_lb_listener" "elblistener80" {
5757

5858
resource "aws_lb_listener" "elblistener443" {
5959
load_balancer_arn = aws_lb.elb.arn
60-
certificate_arn = "arn:aws:acm:eu-west-1:478389220392:certificate/2225440f-8847-4834-a90b-4b81a0105955"
60+
certificate_arn = aws_acm_certificate.cert.arn
6161
port = 443
6262
default_action {
6363
type = "fixed-response"

sys/terraform/import.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ import {
102102
to = aws_iam_user_policy.lb_ro
103103
id = "github_action_deploy:GitHubActionsDeploy"
104104
}
105+
106+
# ACM
107+
import {
108+
to = aws_acm_certificate.cert
109+
id = "arn:aws:acm:eu-west-1:478389220392:certificate/2225440f-8847-4834-a90b-4b81a0105955"
110+
}

sys/terraform/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ variable "ecr_image_tag_php" {
88
type = string
99
}
1010

11-
variable "elb_certificate_arn" {
12-
description = "Specifies the ARN of the Certificate."
13-
type = string
14-
}
15-
1611
variable "environment" {
1712
description = "The Environment"
1813
type = string

0 commit comments

Comments
 (0)