Skip to content

Instantly share code, notes, and snippets.

@kainlite
Created April 27, 2019 20:17
Show Gist options
  • Select an option

  • Save kainlite/128f522071e66f2a33799241a79ebd1a to your computer and use it in GitHub Desktop.

Select an option

Save kainlite/128f522071e66f2a33799241a79ebd1a to your computer and use it in GitHub Desktop.
$ terraform apply
data.archive_file.lambda_zip: Refreshing state...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ aws_iam_role.iam_for_lambda_tf
id: <computed>
arn: <computed>
assume_role_policy: "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"lambda.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n"
create_date: <computed>
force_detach_policies: "false"
max_session_duration: "3600"
name: "iam_for_lambda_tf"
path: "/"
unique_id: <computed>
+ aws_lambda_function.test_lambda
id: <computed>
arn: <computed>
filename: "lambda_function.zip"
function_name: "test_lambda"
handler: "index.handler"
invoke_arn: <computed>
last_modified: <computed>
memory_size: "128"
publish: "false"
qualified_arn: <computed>
reserved_concurrent_executions: "-1"
role: "${aws_iam_role.iam_for_lambda_tf.arn}"
runtime: "nodejs6.10"
source_code_hash: "iMkBKAlTzgvS8FWKCCaHBqVrw/AvdC1cL13vYV0nTnA="
source_code_size: <computed>
timeout: "3"
tracing_config.#: <computed>
version: <computed>
Plan: 2 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
aws_iam_role.iam_for_lambda_tf: Creating...
arn: "" => "<computed>"
assume_role_policy: "" => "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"Service\": \"lambda.amazonaws.com\"\n },\n \"Effect\": \"Allow\",\n \"Sid\": \"\"\n }\n ]\n}\n"
create_date: "" => "<computed>"
force_detach_policies: "" => "false"
max_session_duration: "" => "3600"
name: "" => "iam_for_lambda_tf"
path: "" => "/"
unique_id: "" => "<computed>"
aws_iam_role.iam_for_lambda_tf: Creation complete after 2s (ID: iam_for_lambda_tf)
aws_lambda_function.test_lambda: Creating...
arn: "" => "<computed>"
filename: "" => "lambda_function.zip"
function_name: "" => "test_lambda"
handler: "" => "index.handler"
invoke_arn: "" => "<computed>"
last_modified: "" => "<computed>"
memory_size: "" => "128"
publish: "" => "false"
qualified_arn: "" => "<computed>"
reserved_concurrent_executions: "" => "-1"
role: "" => "arn:aws:iam::894527626897:role/iam_for_lambda_tf"
runtime: "" => "nodejs6.10"
source_code_hash: "" => "iMkBKAlTzgvS8FWKCCaHBqVrw/AvdC1cL13vYV0nTnA="
source_code_size: "" => "<computed>"
timeout: "" => "3"
tracing_config.#: "" => "<computed>"
version: "" => "<computed>"
aws_lambda_function.test_lambda: Creation complete after 8s (ID: test_lambda)
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment