Skip to content

Commit

Permalink
add files for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Apr 1, 2020
1 parent 68fccf1 commit 49be4a1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Description": "hello function",
"FunctionName": "{{ must_env `FUNCTION_NAME` }}",
"Handler": "index.js",
"MemorySize": 128,
"Role": "{{ tfstate `data.aws_iam_role.lambda.arn` }}",
"Runtime": "nodejs12.x",
"Timeout": 5,
"TracingConfig": {
"Mode": "PassThrough"
}
}
34 changes: 34 additions & 0 deletions test/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": 4,
"terraform_version": "0.12.12",
"serial": 1,
"outputs": {},
"resources": [
{
"mode": "data",
"type": "aws_iam_role",
"name": "lambda",
"provider": "provider.aws",
"instances": [
{
"schema_version": 0,
"attributes": {
"arn": "arn:aws:iam::123456789012:role/test_lambda_role",
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"lambda.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
"assume_role_policy_document": null,
"create_date": "2019-11-06T03:22:03Z",
"description": "Allows Lambda functions to call AWS services on your behalf.",
"id": "test_lambda_role",
"max_session_duration": 3600,
"name": "test_lambda_role",
"path": "/",
"permissions_boundary": "",
"role_id": null,
"role_name": null,
"tags": {}
}
}
]
}
]
}

0 comments on commit 49be4a1

Please sign in to comment.