aws/route53_zone: Make delegation_set_id conflict w/ vpc_id (#7213)
- as per the API reference it is not possible to use delegation sets w/ private hosted zones - http://docs.aws.amazon.com/Route53/latest/APIReference/API-create-hosted-zone-private.html - http://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHostedZone.html - if you specify both AWS returns confusing error "InvalidInput" with no further details so this should reduce potential confusions & improve UX
This commit is contained in:
parent
27464fb3d1
commit
2cdb5a367e
|
@ -39,9 +39,10 @@ func resourceAwsRoute53Zone() *schema.Resource {
|
||||||
},
|
},
|
||||||
|
|
||||||
"vpc_id": &schema.Schema{
|
"vpc_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
|
ConflictsWith: []string{"delegation_set_id"},
|
||||||
},
|
},
|
||||||
|
|
||||||
"vpc_region": &schema.Schema{
|
"vpc_region": &schema.Schema{
|
||||||
|
@ -57,9 +58,10 @@ func resourceAwsRoute53Zone() *schema.Resource {
|
||||||
},
|
},
|
||||||
|
|
||||||
"delegation_set_id": &schema.Schema{
|
"delegation_set_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
|
ConflictsWith: []string{"vpc_id"},
|
||||||
},
|
},
|
||||||
|
|
||||||
"name_servers": &schema.Schema{
|
"name_servers": &schema.Schema{
|
||||||
|
|
|
@ -57,8 +57,10 @@ The following arguments are supported:
|
||||||
* `comment` - (Optional) A comment for the hosted zone. Defaults to 'Managed by Terraform'.
|
* `comment` - (Optional) A comment for the hosted zone. Defaults to 'Managed by Terraform'.
|
||||||
* `tags` - (Optional) A mapping of tags to assign to the zone.
|
* `tags` - (Optional) A mapping of tags to assign to the zone.
|
||||||
* `vpc_id` - (Optional) The VPC to associate with a private hosted zone. Specifying `vpc_id` will create a private hosted zone.
|
* `vpc_id` - (Optional) The VPC to associate with a private hosted zone. Specifying `vpc_id` will create a private hosted zone.
|
||||||
|
Conflicts w/ `delegation_set_id` as delegation sets can only be used for public zones.
|
||||||
* `vpc_region` - (Optional) The VPC's region. Defaults to the region of the AWS provider.
|
* `vpc_region` - (Optional) The VPC's region. Defaults to the region of the AWS provider.
|
||||||
* `delegation_set_id` - (Optional) The ID of the reusable delgation set whose NS records you want to assign to the hosted zone.
|
* `delegation_set_id` - (Optional) The ID of the reusable delgation set whose NS records you want to assign to the hosted zone.
|
||||||
|
Conflicts w/ `vpc_id` as delegation sets can only be used for public zones.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue