-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsigning.tf
More file actions
29 lines (23 loc) · 750 Bytes
/
signing.tf
File metadata and controls
29 lines (23 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
resource "aws_signer_signing_profile" "lambda_signing" {
name = "eligibilityapi${var.environment}lambdasigningprofile"
#aws signer is strict with names, does not like hyphens or underscores
platform_id = "AWSLambda-SHA384-ECDSA"
signature_validity_period {
value = 365
type = "DAYS"
}
}
resource "aws_lambda_code_signing_config" "signing_config" {
allowed_publishers {
signing_profile_version_arns = [
aws_signer_signing_profile.lambda_signing.version_arn
]
}
policies {
untrusted_artifact_on_deployment = "Enforce"
}
description = "Only allow Lambda bundles signed by our trusted signer profile"
}
output "lambda_signing_profile_name" {
value = aws_signer_signing_profile.lambda_signing.name
}