Skip to content

Commit 6f6dddb

Browse files
Ninirstack72
authored andcommitted
provider/aws: Deprecate the usage of stage_key in favor of usage plans (hashicorp#12883)
1 parent 373324e commit 6f6dddb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎builtin/providers/aws/resource_aws_api_gateway_api_key.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ func resourceAwsApiGatewayApiKey() *schema.Resource {
4242
},
4343

4444
"stage_key": {
45-
Type: schema.TypeSet,
46-
Optional: true,
45+
Type: schema.TypeSet,
46+
Optional: true,
47+
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",
4748
Elem: &schema.Resource{
4849
Schema: map[string]*schema.Schema{
4950
"rest_api_id": {

‎website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010

1111
Provides an API Gateway API Key.
1212

13+
~> **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.
14+
1315
## Example Usage
1416

1517
```

0 commit comments

Comments
 (0)