We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af1b8c7 commit 7cc1e8eCopy full SHA for 7cc1e8e
aws_lambda_function.tf
@@ -1,12 +1,12 @@
1
resource "aws_lambda_function" "ami_encryption_lambda" {
2
- filename = data.archive_file.ami_encryption[0].output_path
+ filename = data.archive_file.ami_encryption.output_path
3
description = "Responsible for creating AMI with encrypted root volume."
4
function_name = "${upper(var.environment)}-AMI-ENCRYPTION-FUNCTION"
5
role = aws_iam_role.ami_encrypt_lambda.arn
6
handler = "ami_encryption.lambda_handler"
7
runtime = "python3.6"
8
timeout = 180
9
- source_code_hash = data.archive_file.ami_encryption[0].output_base64sha256
+ source_code_hash = data.archive_file.ami_encryption.output_base64sha256
10
11
environment {
12
variables = {
0 commit comments