Use this data source to get the name and value of a pre-existing API Key, for example to supply credentials for a dependency microservice.
data "aws_api_gateway_api_key" "my_api_key" {
id = "ru3mpjgse6"
}
id
- (Required) ID of the API Key to look up.This data source exports the following attributes in addition to the arguments above:
id
- Set to the ID of the API Key.name
- Set to the name of the API Key.value
- Set to the value of the API Key.created_date
- Date and time when the API Key was created.last_updated_date
- Date and time when the API Key was last updated.customer_id
- Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.description
- Description of the API Key.enabled
- Whether the API Key is enabled.tags
- Map of tags for the resource.