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.
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"
No requirements.
Name | Version |
---|---|
aws | n/a |
Name | Type |
---|---|
aws_iam_policy_document.lambda | data source |
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 |
Name | Description |
---|---|
function_name | The name of the Lambda function |