158 lines
5.8 KiB
JSON
158 lines
5.8 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "0.13.5",
|
|
"serial": 28,
|
|
"lineage": "baf13f49-a91e-4ef3-40f8-b010f53cf030",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "data",
|
|
"type": "archive_file",
|
|
"name": "lambda_main",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/archive\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"excludes": null,
|
|
"id": "320d4868dd37d1674e98bd790b8a54b006838d04",
|
|
"output_base64sha256": "5EVmwQDkgGfYMpMXNaWHUz3cmb/dSssoWl8mM8o3aMs=",
|
|
"output_md5": "611fc9e8b494e4b399217f632b8e35ed",
|
|
"output_path": "./lambda/main.js.zip",
|
|
"output_sha": "320d4868dd37d1674e98bd790b8a54b006838d04",
|
|
"output_size": 601,
|
|
"source": [],
|
|
"source_content": null,
|
|
"source_content_filename": null,
|
|
"source_dir": null,
|
|
"source_file": "./lambda/main.js",
|
|
"type": "zip"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_iam_policy",
|
|
"name": "lambda_logging",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:iam::745437999005:policy/prod-onmyojideckbuilder-lambda_logging",
|
|
"description": "",
|
|
"id": "arn:aws:iam::745437999005:policy/prod-onmyojideckbuilder-lambda_logging",
|
|
"name": "prod-onmyojideckbuilder-lambda_logging",
|
|
"name_prefix": null,
|
|
"path": "/",
|
|
"policy": "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"logs:CreateLogGroup\",\n \"logs:CreateLogStream\",\n \"logs:PutLogEvents\"\n ],\n \"Resource\": \"arn:aws:logs:*:*:*\",\n \"Effect\": \"Allow\"\n }\n ]\n}\n"
|
|
},
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_iam_role",
|
|
"name": "lambda_role",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:iam::745437999005:role/prod-onmyojideckbuilder-lambda",
|
|
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":[\"lambda.amazonaws.com\",\"edgelambda.amazonaws.com\"]},\"Action\":\"sts:AssumeRole\"}]}",
|
|
"create_date": "2021-03-18T00:54:31Z",
|
|
"description": "",
|
|
"force_detach_policies": false,
|
|
"id": "prod-onmyojideckbuilder-lambda",
|
|
"max_session_duration": 3600,
|
|
"name": "prod-onmyojideckbuilder-lambda",
|
|
"name_prefix": null,
|
|
"path": "/",
|
|
"permissions_boundary": null,
|
|
"tags": {
|
|
"Description": "website to build and share onmyoji decks",
|
|
"Project": "onmyoji-deck-builder"
|
|
},
|
|
"unique_id": "AROA23D4RF6OTBMEPSDVE"
|
|
},
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_iam_role_policy_attachment",
|
|
"name": "lambda_logging",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "prod-onmyojideckbuilder-lambda-20210318005433729100000002",
|
|
"policy_arn": "arn:aws:iam::745437999005:policy/prod-onmyojideckbuilder-lambda_logging",
|
|
"role": "prod-onmyojideckbuilder-lambda"
|
|
},
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"aws_iam_policy.lambda_logging",
|
|
"aws_iam_role.lambda_role"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_lambda_function",
|
|
"name": "directory_indexes",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"].us_east_1",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:lambda:us-east-1:745437999005:function:prod-onmyojideckbuilder-directory_indexes",
|
|
"dead_letter_config": [],
|
|
"description": "",
|
|
"environment": [],
|
|
"file_system_config": [],
|
|
"filename": "./lambda/main.js.zip",
|
|
"function_name": "prod-onmyojideckbuilder-directory_indexes",
|
|
"handler": "main.handler",
|
|
"id": "prod-onmyojideckbuilder-directory_indexes",
|
|
"invoke_arn": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:745437999005:function:prod-onmyojideckbuilder-directory_indexes/invocations",
|
|
"kms_key_arn": "",
|
|
"last_modified": "2021-03-18T00:54:40.108+0000",
|
|
"layers": [],
|
|
"memory_size": 128,
|
|
"publish": true,
|
|
"qualified_arn": "arn:aws:lambda:us-east-1:745437999005:function:prod-onmyojideckbuilder-directory_indexes:1",
|
|
"reserved_concurrent_executions": -1,
|
|
"role": "arn:aws:iam::745437999005:role/prod-onmyojideckbuilder-lambda",
|
|
"runtime": "nodejs12.x",
|
|
"s3_bucket": null,
|
|
"s3_key": null,
|
|
"s3_object_version": null,
|
|
"source_code_hash": "5EVmwQDkgGfYMpMXNaWHUz3cmb/dSssoWl8mM8o3aMs=",
|
|
"source_code_size": 601,
|
|
"tags": {
|
|
"Description": "website to build and share onmyoji decks",
|
|
"Project": "onmyoji-deck-builder"
|
|
},
|
|
"timeout": 3,
|
|
"timeouts": null,
|
|
"tracing_config": [
|
|
{
|
|
"mode": "PassThrough"
|
|
}
|
|
],
|
|
"version": "1",
|
|
"vpc_config": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|