Configuration in this directory creates several AWS Lambda Functions deployed from Container Images (using modules/docker-build
and terraform-aws-modules/terraform-aws-ecr
).
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
Note that this example may create resources which cost money. Run terraform destroy
when you don't need these resources.
Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 5.79 |
docker | >= 3.0 |
random | >= 2.0 |
Name | Version |
---|---|
aws | >= 5.79 |
random | >= 2.0 |
Name | Source | Version |
---|---|---|
docker_build | ../../modules/docker-build | n/a |
docker_build_from_ecr | ../../modules/docker-build | n/a |
ecr | terraform-aws-modules/ecr/aws | n/a |
lambda_function_with_docker_build | ../../ | n/a |
lambda_function_with_docker_build_from_ecr | ../../ | n/a |
Name | Type |
---|---|
random_pet.this | resource |
aws_caller_identity.this | data source |
aws_ecr_authorization_token.token | data source |
aws_region.current | data source |
No inputs.
Name | Description |
---|---|
docker_image_files_to_hash | List of files used to hash the docker image tag |
docker_image_id | The ID of the Docker image |
docker_image_uri | The ECR Docker image URI used to deploy Lambda Function |
lambda_cloudwatch_log_group_arn | The ARN of the Cloudwatch Log Group |
lambda_function_arn | The ARN of the Lambda Function |
lambda_function_arn_static | The static ARN of the Lambda Function. Use this to avoid cycle errors between resources (e.g., Step Functions) |
lambda_function_invoke_arn | The Invoke ARN of the Lambda Function |
lambda_function_kms_key_arn | The ARN for the KMS encryption key of Lambda Function |
lambda_function_last_modified | The date Lambda Function resource was last modified |
lambda_function_name | The name of the Lambda Function |
lambda_function_qualified_arn | The ARN identifying your Lambda Function Version |
lambda_function_source_code_hash | Base64-encoded representation of raw SHA-256 sum of the zip file |
lambda_function_source_code_size | The size in bytes of the function .zip file |
lambda_function_version | Latest published version of Lambda Function |
lambda_layer_arn | The ARN of the Lambda Layer with version |
lambda_layer_created_date | The date Lambda Layer resource was created |
lambda_layer_layer_arn | The ARN of the Lambda Layer without version |
lambda_layer_source_code_size | The size in bytes of the Lambda Layer .zip file |
lambda_layer_version | The Lambda Layer version |
lambda_role_arn | The ARN of the IAM role created for the Lambda Function |
lambda_role_name | The name of the IAM role created for the Lambda Function |