Skip to content

Commit

Permalink
docs/provider: Add aws_availability_zones removals to version 3 guide
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Jun 23, 2020
1 parent abffcb6 commit a897caf
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions website/docs/guides/version-3-upgrade.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Upgrade topics:
<!-- TOC depthFrom:2 depthTo:2 -->

- [Provider Version Configuration](#provider-version-configuration)
- [Data Source: aws_availability_zones](#data-source-aws_availability_zones)
- [Data Source: aws_lambda_invocation](#data-source-aws_lambda_invocation)
- [Resource: aws_emr_cluster](#resource-aws_emr_cluster)

Expand Down Expand Up @@ -52,6 +53,48 @@ provider "aws" {
}
```

## Data Source: aws_availability_zones

### blacklisted_names Attribute Removal

Switch your Terraform configuration to the `skip_names` attribute instead.

For example, given this previous configuration:

```hcl
data "aws_availability_zones" "example" {
blacklisted_names = ["us-west-2d"]
}
```

An updated configuration:

```hcl
data "aws_availability_zones" "example" {
skip_names = ["us-west-2d"]
}
```

### blacklisted_zone_ids Attribute Removal

Switch your Terraform configuration to the `skip_zone_ids` attribute instead.

For example, given this previous configuration:

```hcl
data "aws_availability_zones" "example" {
blacklisted_zone_ids = ["usw2-az4"]
}
```

An updated configuration:

```hcl
data "aws_availability_zones" "example" {
skip_zone_ids = ["usw2-az4"]
}
```

## Data Source: aws_lambda_invocation

### result_map Attribute Removal
Expand Down

0 comments on commit a897caf

Please sign in to comment.