From 57de6892b9d64dd75a2e3a0a49e997165823ccc6 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 21 Aug 2018 09:42:46 -0400 Subject: [PATCH 1/2] data-source/aws_ami: Add note that owners argument will be required in next major version --- website/docs/d/ami.html.markdown | 2 ++ website/docs/d/ami_ids.html.markdown | 2 ++ 2 files changed, 4 insertions(+) diff --git a/website/docs/d/ami.html.markdown b/website/docs/d/ami.html.markdown index 716d58548172..baae6aaf189d 100644 --- a/website/docs/d/ami.html.markdown +++ b/website/docs/d/ami.html.markdown @@ -11,6 +11,8 @@ description: |- Use this data source to get the ID of a registered AMI for use in other resources. +~> **NOTE:** The `owners` argument will be **required** in the next major version. + ## Example Usage ```hcl diff --git a/website/docs/d/ami_ids.html.markdown b/website/docs/d/ami_ids.html.markdown index bc691f5faeca..6e979f76c141 100644 --- a/website/docs/d/ami_ids.html.markdown +++ b/website/docs/d/ami_ids.html.markdown @@ -10,6 +10,8 @@ description: |- Use this data source to get a list of AMI IDs matching the specified criteria. +~> **NOTE:** The `owners` argument will be **required** in the next major version. + ## Example Usage ```hcl From 1c66fb8049c75826a58efa0428250a43772c1b23 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 21 Aug 2018 09:51:07 -0400 Subject: [PATCH 2/2] docs/guides/version-2-upgrade: Add aws_ami and aws_ami_ids sections about owners argument requirement --- website/docs/guides/version-2-upgrade.html.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/docs/guides/version-2-upgrade.html.md b/website/docs/guides/version-2-upgrade.html.md index 1c109417b415..7e1f6aa2e2ee 100644 --- a/website/docs/guides/version-2-upgrade.html.md +++ b/website/docs/guides/version-2-upgrade.html.md @@ -19,6 +19,8 @@ Upgrade topics: - [Provider Version Configuration](#provider-version-configuration) +- [Data Source: aws_ami](#data-source-aws_ami) +- [Data Source: aws_ami_ids](#data-source-aws_ami_ids) - [Data Source: aws_iam_role](#data-source-aws_iam_role) - [Data Source: aws_kms_secret](#data-source-aws_kms_secret) - [Data Source: aws_region](#data-source-aws_region) @@ -70,6 +72,18 @@ provider "aws" { } ``` +## Data Source: aws_ami + +### owners Argument Now Required + +The `owners` argument is now required. Specifying `owner-id` or `owner-alias` under `filter` does not satisfy this requirement. + +## Data Source: aws_ami_ids + +### owners Argument Now Required + +The `owners` argument is now required. Specifying `owner-id` or `owner-alias` under `filter` does not satisfy this requirement. + ## Data Source: aws_iam_role ### assume_role_policy_document Attribute Removal