Skip to content

Terraform managed AWS Lambda to lookup AMI IDs by AMI Name

License

Notifications You must be signed in to change notification settings

plus3it/lookup-ami-ids

Repository files navigation

lookup-ami-ids

AWS Lambda based cloudformation custom resource to lookup AMI IDs by AMI Name.

See the tests directory of this project for examples on how to consume this resource.

Testing

At the moment, testing is manual:

NOTE: There is a success case and a failure case; each will need to be tested separately. See the "-k" option below.

# Replace "xxx" with an actual AWS profile, then execute the integration tests.
export AWS_PROFILE=xxx 
make terraform/pytest PYTEST_ARGS="-v --nomock -k success"

# The following will fail:
make terraform/pytest PYTEST_ARGS="-v --nomock -k failure"

Requirements

No requirements.

Providers

Name Version
aws n/a

Resources

Name Type
aws_iam_policy_document.lambda data source

Inputs

Name Description Type Default Required
function_name The function name of the lambda string "cfn-lookup-ami-ids" no
log_level The log level of the lambda function string "INFO" no

Outputs

Name Description
function_name The name of the Lambda function

About

Terraform managed AWS Lambda to lookup AMI IDs by AMI Name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published