{"version":4,"terraform_version":"1.8.1","serial":11,"lineage":"ee07cb76-d341-1705-7254-a3c7f4b1c130","outputs":{},"resources":[{"mode":"data","type":"archive_file","name":"function1","provider":"provider[\"registry.opentofu.org/hashicorp/archive\"]","instances":[{"schema_version":0,"attributes":{"exclude_symlink_directories":null,"excludes":null,"id":"2cb4eb8b4015bdba2a24f613a3cf968dfb655c30","output_base64sha256":"PFeEE76aYsM9AmaRb4uI5a2xFQhS/d8PIPt8iSipYUM=","output_base64sha512":"bxVwK8BO5UL+2/i4zEXmeKX9Pv1TtQmkVBztRjrp0rbCl2NqMjUzmBNSWj7ocKGUxwLMxCQqdH2QeaaXdMosQw==","output_file_mode":null,"output_md5":"019a28f3cc3cfe2aa4d33225f5f6a5c5","output_path":"function1.zip","output_sha":"2cb4eb8b4015bdba2a24f613a3cf968dfb655c30","output_sha256":"3c578413be9a62c33d0266916f8b88e5adb1150852fddf0f20fb7c8928a96143","output_sha512":"6f15702bc04ee542fedbf8b8cc45e678a5fd3efd53b509a4541ced463ae9d2b6c297636a3235339813525a3ee870a194c702ccc4242a747d9079a69774ca2c43","output_size":328,"source":[],"source_content":null,"source_content_filename":null,"source_dir":null,"source_file":"function.py","type":"zip"},"sensitive_attributes":[]}]},{"mode":"data","type":"archive_file","name":"layer1","provider":"provider[\"registry.opentofu.org/hashicorp/archive\"]","instances":[{"schema_version":0,"attributes":{"exclude_symlink_directories":null,"excludes":null,"id":"8d750b51bcea959159e8ede55b19f587885ef2cd","output_base64sha256":"yjIA0/B/TxG6qtRarO7Txw5GcChKkU2Gflxq75XeGwM=","output_base64sha512":"NEtOr35kOjdKJGienfhnGhLctykChj1rYb2ZFtWYvT7oMxJ8s3o90l/57+4AmFRq+bfzvX/cbAhmmtL6Dau/hA==","output_file_mode":null,"output_md5":"514496098366c194556ac09c1a8b420a","output_path":"lambda-layer1.zip","output_sha":"8d750b51bcea959159e8ede55b19f587885ef2cd","output_sha256":"ca3200d3f07f4f11baaad45aaceed3c70e4670284a914d867e5c6aef95de1b03","output_sha512":"344b4eaf7e643a374a24689e9df8671a12dcb72902863d6b61bd9916d598bd3ee833127cb37a3dd25ff9efee0098546af9b7f3bd7fdc6c08669ad2fa0dabbf84","output_size":1038174,"source":[],"source_content":null,"source_content_filename":null,"source_dir":"lambda-layer1","source_file":null,"type":"zip"},"sensitive_attributes":[]}]},{"mode":"managed","type":"aws_iam_role","name":"lambda-role1","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:iam::040216112220:role/TestFunctionRole","assume_role_policy":"{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}","create_date":"2024-08-26T06:36:36Z","description":"","force_detach_policies":false,"id":"TestFunctionRole","inline_policy":[],"managed_policy_arns":["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"],"max_session_duration":3600,"name":"TestFunctionRole","name_prefix":"","path":"/","permissions_boundary":"","tags":{},"tags_all":{"TerraformDir":"examples/lambda-layers","TerraformMode":"managed"},"unique_id":"AROAQSXIRFROBJBEQ4T6Y"},"sensitive_attributes":[],"private":"bnVsbA=="}]},{"mode":"managed","type":"aws_lambda_function","name":"myFunction","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"architectures":["arm64"],"arn":"arn:aws:lambda:ap-east-1:040216112220:function:TestFunction","code_sha256":"PFeEE76aYsM9AmaRb4uI5a2xFQhS/d8PIPt8iSipYUM=","code_signing_config_arn":"","dead_letter_config":[],"description":"Lambda layer test","environment":[],"ephemeral_storage":[{"size":512}],"file_system_config":[],"filename":"function1.zip","function_name":"TestFunction","handler":"function.lambda_handler","id":"TestFunction","image_config":[],"image_uri":"","invoke_arn":"arn:aws:apigateway:ap-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-east-1:040216112220:function:TestFunction/invocations","kms_key_arn":"","last_modified":"2024-08-26T06:54:11.000+0000","layers":["arn:aws:lambda:ap-east-1:040216112220:layer:Python3RequestsLibrary:3"],"logging_config":[{"application_log_level":"","log_format":"Text","log_group":"/aws/lambda/TestFunction","system_log_level":""}],"memory_size":128,"package_type":"Zip","publish":false,"qualified_arn":"arn:aws:lambda:ap-east-1:040216112220:function:TestFunction:$LATEST","qualified_invoke_arn":"arn:aws:apigateway:ap-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-east-1:040216112220:function:TestFunction:$LATEST/invocations","replace_security_groups_on_destroy":null,"replacement_security_group_ids":null,"reserved_concurrent_executions":-1,"role":"arn:aws:iam::040216112220:role/TestFunctionRole","runtime":"python3.12","s3_bucket":null,"s3_key":null,"s3_object_version":null,"signing_job_arn":"","signing_profile_version_arn":"","skip_destroy":false,"snap_start":[],"source_code_hash":"PFeEE76aYsM9AmaRb4uI5a2xFQhS/d8PIPt8iSipYUM=","source_code_size":328,"tags":{},"tags_all":{"TerraformDir":"examples/lambda-layers","TerraformMode":"managed"},"timeout":3,"timeouts":null,"tracing_config":[{"mode":"PassThrough"}],"version":"$LATEST","vpc_config":[]},"sensitive_attributes":[],"private":"eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19","dependencies":["aws_iam_role.lambda-role1","aws_lambda_layer_version.libraries","data.archive_file.function1","data.archive_file.layer1"]}]},{"mode":"managed","type":"aws_lambda_layer_version","name":"libraries","provider":"provider[\"registry.opentofu.org/hashicorp/aws\"]","instances":[{"schema_version":0,"attributes":{"arn":"arn:aws:lambda:ap-east-1:040216112220:layer:Python3RequestsLibrary:3","code_sha256":"yjIA0/B/TxG6qtRarO7Txw5GcChKkU2Gflxq75XeGwM=","compatible_architectures":[],"compatible_runtimes":["python3.12"],"created_date":"2024-08-26T06:47:16.946+0000","description":"Python3 requests library","filename":"lambda-layer1.zip","id":"arn:aws:lambda:ap-east-1:040216112220:layer:Python3RequestsLibrary:3","layer_arn":"arn:aws:lambda:ap-east-1:040216112220:layer:Python3RequestsLibrary","layer_name":"Python3RequestsLibrary","license_info":"","s3_bucket":null,"s3_key":null,"s3_object_version":null,"signing_job_arn":"","signing_profile_version_arn":"","skip_destroy":false,"source_code_hash":"","source_code_size":1038174,"version":"3"},"sensitive_attributes":[],"private":"bnVsbA==","dependencies":["data.archive_file.layer1"]}]}],"check_results":null}