From 6f6dddba67dcaf9bddd02db434f48cacb05667aa Mon Sep 17 00:00:00 2001 From: Gauthier Wallet Date: Mon, 20 Mar 2017 17:09:14 +0100 Subject: [PATCH] provider/aws: Deprecate the usage of stage_key in favor of usage plans (#12883) --- builtin/providers/aws/resource_aws_api_gateway_api_key.go | 5 +++-- .../docs/providers/aws/r/api_gateway_api_key.html.markdown | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_api_gateway_api_key.go b/builtin/providers/aws/resource_aws_api_gateway_api_key.go index 24fc04519..66a7154de 100644 --- a/builtin/providers/aws/resource_aws_api_gateway_api_key.go +++ b/builtin/providers/aws/resource_aws_api_gateway_api_key.go @@ -42,8 +42,9 @@ func resourceAwsApiGatewayApiKey() *schema.Resource { }, "stage_key": { - Type: schema.TypeSet, - Optional: true, + Type: schema.TypeSet, + Optional: true, + Deprecated: "Since the API Gateway usage plans feature was launched on August 11, 2016, usage plans are now required to associate an API key with an API stage", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "rest_api_id": { diff --git a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown index c57c081f3..ad7e8413f 100644 --- a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown @@ -10,6 +10,8 @@ description: |- Provides an API Gateway API Key. +~> **Warning:** Since the API Gateway usage plans feature was launched on August 11, 2016, usage plans are now **required** to associate an API key with an API stage. + ## Example Usage ```