307 lines
11 KiB
JSON
307 lines
11 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.8.3",
|
|
"serial": 50,
|
|
"lineage": "3d9e9e5b-e59a-3f03-49c9-906d67028b61",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "data",
|
|
"type": "archive_file",
|
|
"name": "lambda",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/archive\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"exclude_symlink_directories": null,
|
|
"excludes": null,
|
|
"id": "cfdf624da45558bff9a94f88d4d77966b7171f2f",
|
|
"output_base64sha256": "ObwHNFJSs3OzPP8ZLVn0U0aRifejNlRtnr9SWB7rbGs=",
|
|
"output_base64sha512": "rh0XpxdZ4fLJsAfz5xVY5FRvsBwxJk8uH0BNB8QapEJr7G2OJMKgPaTvk5Kzkx0+hLRddICaZuLzno0smXr7Bw==",
|
|
"output_file_mode": null,
|
|
"output_md5": "d152694d3476fff84ff4979df86e95e9",
|
|
"output_path": "lambda_function_payload.zip",
|
|
"output_sha": "cfdf624da45558bff9a94f88d4d77966b7171f2f",
|
|
"output_sha256": "39bc07345252b373b33cff192d59f453469189f7a336546d9ebf52581eeb6c6b",
|
|
"output_sha512": "ae1d17a71759e1f2c9b007f3e71558e4546fb01c31264f2e1f404d07c41aa4426bec6d8e24c2a03da4ef9392b3931d3e84b45d74809a66e2f39e8d2c997afb07",
|
|
"output_size": 1714,
|
|
"source": [],
|
|
"source_content": null,
|
|
"source_content_filename": null,
|
|
"source_dir": "./code",
|
|
"source_file": null,
|
|
"type": "zip"
|
|
},
|
|
"sensitive_attributes": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "data",
|
|
"type": "archive_file",
|
|
"name": "layer",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/archive\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"exclude_symlink_directories": null,
|
|
"excludes": null,
|
|
"id": "c55daed5f392052aaa8550df15c7586bce956ff1",
|
|
"output_base64sha256": "CuqYP2g/IJX/YEnvN0hGrQNhdx1SAn1+/abBHcJMcXU=",
|
|
"output_base64sha512": "JRCt30sfQZk7muptBMvnzTwZuQedr1R1S66uz4oMfaXRyAfu+knLuEzAiVX6MLvk1bwlcFNpTznsS8ZuiKJTOQ==",
|
|
"output_file_mode": null,
|
|
"output_md5": "a382299daf7c39c0065eb8a03397f1af",
|
|
"output_path": "./layer.zip",
|
|
"output_sha": "c55daed5f392052aaa8550df15c7586bce956ff1",
|
|
"output_sha256": "0aea983f683f2095ff6049ef374846ad0361771d52027d7efda6c11dc24c7175",
|
|
"output_sha512": "2510addf4b1f41993b9aea6d04cbe7cd3c19b9079daf54754baeaecf8a0c7da5d1c807eefa49cbb84cc08955fa30bbe4d5bc257053694f39ec4bc66e88a25339",
|
|
"output_size": 5819274,
|
|
"source": [],
|
|
"source_content": null,
|
|
"source_content_filename": null,
|
|
"source_dir": "./layer",
|
|
"source_file": null,
|
|
"type": "zip"
|
|
},
|
|
"sensitive_attributes": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "data",
|
|
"type": "aws_iam_policy_document",
|
|
"name": "assume_role",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "2690255455",
|
|
"json": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"lambda.amazonaws.com\"\n }\n }\n ]\n}",
|
|
"minified_json": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"sts:AssumeRole\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"}}]}",
|
|
"override_json": null,
|
|
"override_policy_documents": null,
|
|
"policy_id": null,
|
|
"source_json": null,
|
|
"source_policy_documents": null,
|
|
"statement": [
|
|
{
|
|
"actions": [
|
|
"sts:AssumeRole"
|
|
],
|
|
"condition": [],
|
|
"effect": "Allow",
|
|
"not_actions": [],
|
|
"not_principals": [],
|
|
"not_resources": [],
|
|
"principals": [
|
|
{
|
|
"identifiers": [
|
|
"lambda.amazonaws.com"
|
|
],
|
|
"type": "Service"
|
|
}
|
|
],
|
|
"resources": [],
|
|
"sid": ""
|
|
}
|
|
],
|
|
"version": "2012-10-17"
|
|
},
|
|
"sensitive_attributes": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_iam_role",
|
|
"name": "iam_for_lambda",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:iam::679918342773:role/glimpse2",
|
|
"assume_role_policy": "{\"Statement\":[{\"Action\":\"sts:AssumeRole\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"}}],\"Version\":\"2012-10-17\"}",
|
|
"create_date": "2024-05-31T03:45:29Z",
|
|
"description": "",
|
|
"force_detach_policies": false,
|
|
"id": "glimpse2",
|
|
"inline_policy": [],
|
|
"managed_policy_arns": [],
|
|
"max_session_duration": 3600,
|
|
"name": "glimpse2",
|
|
"name_prefix": "",
|
|
"path": "/",
|
|
"permissions_boundary": "",
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"unique_id": "AROAZ4TSKSJ2TJAOEIZDG"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"data.aws_iam_policy_document.assume_role"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lambda_function",
|
|
"name": "test_lambda",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"architectures": [
|
|
"x86_64"
|
|
],
|
|
"arn": "arn:aws:lambda:us-east-1:679918342773:function:glimpse2",
|
|
"code_sha256": "ObwHNFJSs3OzPP8ZLVn0U0aRifejNlRtnr9SWB7rbGs=",
|
|
"code_signing_config_arn": "",
|
|
"dead_letter_config": [],
|
|
"description": "",
|
|
"environment": [
|
|
{
|
|
"variables": {
|
|
"foo": "bar"
|
|
}
|
|
}
|
|
],
|
|
"ephemeral_storage": [
|
|
{
|
|
"size": 512
|
|
}
|
|
],
|
|
"file_system_config": [],
|
|
"filename": "lambda_function_payload.zip",
|
|
"function_name": "glimpse2",
|
|
"handler": "main.handler",
|
|
"id": "glimpse2",
|
|
"image_config": [],
|
|
"image_uri": "",
|
|
"invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:679918342773:function:glimpse2/invocations",
|
|
"kms_key_arn": "",
|
|
"last_modified": "2024-06-07T17:43:33.000+0000",
|
|
"layers": [
|
|
"arn:aws:lambda:us-east-1:679918342773:layer:openai-layer:3"
|
|
],
|
|
"logging_config": [
|
|
{
|
|
"application_log_level": "",
|
|
"log_format": "Text",
|
|
"log_group": "/aws/lambda/glimpse2",
|
|
"system_log_level": ""
|
|
}
|
|
],
|
|
"memory_size": 512,
|
|
"package_type": "Zip",
|
|
"publish": false,
|
|
"qualified_arn": "arn:aws:lambda:us-east-1:679918342773:function:glimpse2:$LATEST",
|
|
"qualified_invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:679918342773:function:glimpse2:$LATEST/invocations",
|
|
"replace_security_groups_on_destroy": null,
|
|
"replacement_security_group_ids": null,
|
|
"reserved_concurrent_executions": -1,
|
|
"role": "arn:aws:iam::679918342773:role/glimpse2",
|
|
"runtime": "python3.11",
|
|
"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": "ObwHNFJSs3OzPP8ZLVn0U0aRifejNlRtnr9SWB7rbGs=",
|
|
"source_code_size": 1714,
|
|
"tags": {},
|
|
"tags_all": {},
|
|
"timeout": 30,
|
|
"timeouts": null,
|
|
"tracing_config": [
|
|
{
|
|
"mode": "PassThrough"
|
|
}
|
|
],
|
|
"version": "$LATEST",
|
|
"vpc_config": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_iam_role.iam_for_lambda",
|
|
"aws_lambda_layer_version.layer",
|
|
"data.archive_file.lambda",
|
|
"data.archive_file.layer",
|
|
"data.aws_iam_policy_document.assume_role",
|
|
"null_resource.pip_install"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lambda_layer_version",
|
|
"name": "layer",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:lambda:us-east-1:679918342773:layer:openai-layer:3",
|
|
"code_sha256": "CuqYP2g/IJX/YEnvN0hGrQNhdx1SAn1+/abBHcJMcXU=",
|
|
"compatible_architectures": [],
|
|
"compatible_runtimes": [
|
|
"python3.11"
|
|
],
|
|
"created_date": "2024-05-31T04:04:35.368+0000",
|
|
"description": "",
|
|
"filename": "./layer.zip",
|
|
"id": "arn:aws:lambda:us-east-1:679918342773:layer:openai-layer:3",
|
|
"layer_arn": "arn:aws:lambda:us-east-1:679918342773:layer:openai-layer",
|
|
"layer_name": "openai-layer",
|
|
"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": "CuqYP2g/IJX/YEnvN0hGrQNhdx1SAn1+/abBHcJMcXU=",
|
|
"source_code_size": 5819274,
|
|
"version": "3"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"data.archive_file.layer",
|
|
"null_resource.pip_install"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "pip_install",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/null\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "1021063493210559277",
|
|
"triggers": {
|
|
"shell_hash": "6a99f45c27ef7e94781d92867edc01407a37d8a5ff68e4dcf245f4ec82154993"
|
|
}
|
|
},
|
|
"sensitive_attributes": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|