Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.54 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.54 KB

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