terraform-provider-awslambda

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

terraform-provider-awslambda

Build

$ go build -o terraform-provider-awslambda 

Installation

$ cp terraform-provider-awslambda ~/.terraform.d/plugins

Usage

Defining the provider. This provider only supports three variables. They are region, profile, and role_arn.

provider "awslambda" {
  region   = "us-west-1"
  profile  = "default"
  role_arn = "arn:aws:iam::account-id:role/role-name-with-path"
}

Example:

resource "aws_lambda_invocation" "example" {
  function_name = "${aws_lambda_function.lambda_function_test.function_name}"

  input = <<JSON
 {
   "key1": "value1",
   "key2": "value2"
 }
 JSON
}

output "result_entry" {
  value = jsondecode(aws_lambda_invocation.example.result)["key1"]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL