An open API service indexing awesome lists of open source software.

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

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 |