https://github.com/plus3it/lookup-ami-ids
Terraform managed AWS Lambda to lookup AMI IDs by AMI Name
https://github.com/plus3it/lookup-ami-ids
Last synced: 11 months ago
JSON representation
Terraform managed AWS Lambda to lookup AMI IDs by AMI Name
- Host: GitHub
- URL: https://github.com/plus3it/lookup-ami-ids
- Owner: plus3it
- License: apache-2.0
- Created: 2020-03-25T15:44:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-09T14:17:56.000Z (12 months ago)
- Last Synced: 2025-06-09T15:29:30.019Z (12 months ago)
- Language: HCL
- Homepage:
- Size: 332 KB
- Stars: 1
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](#provider\_aws) | n/a |
## Resources
| Name | Type |
|------|------|
| [aws_iam_policy_document.lambda](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [function\_name](#input\_function\_name) | The function name of the lambda | `string` | `"cfn-lookup-ami-ids"` | no |
| [log\_level](#input\_log\_level) | The log level of the lambda function | `string` | `"INFO"` | no |
## Outputs
| Name | Description |
|------|-------------|
| [function\_name](#output\_function\_name) | The name of the Lambda function |