add amazon-ami output example

This commit is contained in:
sylviamoss 2021-01-18 13:53:57 +01:00
parent 78a48ea429
commit 95721df95c
1 changed files with 14 additions and 0 deletions

View File

@ -45,6 +45,20 @@ identifier, like `data.<TYPE>.<NAME>.<ATTRIBUTE>`.
The output from the `amazon-ami.example` above can be accessed as follows: The output from the `amazon-ami.example` above can be accessed as follows:
Output data:
```
"data.amazon-ami.example" {
id = "ami12345"
name = "MyAMI"
creation_date = "01/01/2021"
owner = "123456789"
owner_name = "Some Name"
tags = {"tag1": "value"}
}
```
Usage:
```hcl ```hcl
// in a local // in a local
locals { locals {