generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: outscale_hmi <[email protected]>
- Loading branch information
1 parent
8720d5c
commit 056e027
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Code generated from the comments of the DatasourceOutput struct in datasource/omi/data.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `id` (string) - The ID of the OMI. | ||
|
||
- `name` (string) - The name of the OMI. | ||
|
||
- `creation_date` (string) - The date of creation of the OMI. | ||
|
||
- `owner` (string) - The Outscale account Id of the owner. | ||
|
||
- `owner_name` (string) - The owner alias. | ||
|
||
- `tags` (map[string]string) - The key/value combination of the tags assigned to the OMI. | ||
|
||
<!-- End of code generated from the comments of the DatasourceOutput struct in datasource/omi/data.go; --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
description: | | ||
The Outscale OMI data source provides information from an OMI that will be fetched based | ||
on the filter options provided in the configuration. | ||
|
||
page_title: Outscale OMI - Data Source | ||
nav_title: Outscale OMI | ||
--- | ||
|
||
# Outscale OMI Data Source | ||
|
||
Type: `outscale-omi` | ||
|
||
The Outscale OMI Data source will filter and fetch an Outscale OMI, and output all the OMI information that will | ||
be then available to use in the [Outscale builders](https://developer.hashicorp.com/packer/plugins/builders/outscale). | ||
|
||
-> **Note:** Data sources is a feature exclusively available to HCL2 templates. | ||
|
||
Basic example of usage: | ||
|
||
```hcl | ||
data "outscale-omi" "basic-example" { | ||
filters = { | ||
virtualization-type = "hvm" | ||
name = "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*" | ||
root-device-type = "ebs" | ||
} | ||
owners = ["099720109477"] | ||
most_recent = true | ||
} | ||
``` | ||
This selects the most recent Ubuntu 16.04 HVM EBS OMI from Canonical. Note that the data source will fail unless | ||
*exactly* one OMI is returned. In the above example, `most_recent` will cause this to succeed by selecting the newest image. |