Merge pull request #698 from cloudskiff/fix/lambdaCodeSize

Ignore source_code_size in aws_lambda_function
main
Elie 2021-06-24 17:39:06 +02:00 committed by GitHub
commit 88acce0124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
"role": "arn:aws:iam::047081014315:role/iam_for_lambda", "role": "arn:aws:iam::047081014315:role/iam_for_lambda",
"runtime": "nodejs12.x", "runtime": "nodejs12.x",
"source_code_hash": "PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=", "source_code_hash": "PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=",
"source_code_size": 352,
"timeout": 3, "timeout": 3,
"tracing_config": [ "tracing_config": [
{ {
@ -43,7 +42,6 @@
"role": "arn:aws:iam::047081014315:role/iam_for_lambda", "role": "arn:aws:iam::047081014315:role/iam_for_lambda",
"runtime": "nodejs12.x", "runtime": "nodejs12.x",
"source_code_hash": "PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=", "source_code_hash": "PoaAEeOCmEFZojnrhEJvNzs+jg7/w1lL9GiFYvlM6aw=",
"source_code_size": 352,
"timeout": 3, "timeout": 3,
"tracing_config": [ "tracing_config": [
{ {

View File

@ -18,5 +18,6 @@ func initAwsLambdaFunctionMetaData(resourceSchemaRepository resource.SchemaRepos
val.DeleteIfDefault("package_type") val.DeleteIfDefault("package_type")
val.DeleteIfDefault("signing_job_arn") val.DeleteIfDefault("signing_job_arn")
val.DeleteIfDefault("signing_profile_version_arn") val.DeleteIfDefault("signing_profile_version_arn")
val.SafeDelete([]string{"source_code_size"})
}) })
} }