Skip to content

Commit

Permalink
Merge pull request #31480 from Maddog2050/fix-aws-dx-connection
Browse files Browse the repository at this point in the history
Fix schema type for vlan_id on aws_dx_connection
  • Loading branch information
ewbankkit authored May 30, 2023
2 parents 5ab1842 + 69e51e6 commit c0cce82
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changelog/31480.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:bug
data-source/aws_dx_connection: Fix the `vlan_id` being returned as null
```

```release-note:bug
resource/aws_dx_connection: Fix the `vlan_id` being returned as null
```
2 changes: 1 addition & 1 deletion internal/service/directconnect/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func ResourceConnection() *schema.Resource {
names.AttrTags: tftags.TagsSchema(),
names.AttrTagsAll: tftags.TagsSchemaComputed(),
"vlan_id": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/directconnect/connection_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func DataSourceConnection() *schema.Resource {
},
"tags": tftags.TagsSchemaComputed(),
"vlan_id": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/directconnect/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestAccDirectConnectConnection_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "partner_name", ""),
resource.TestCheckResourceAttr(resourceName, "provider_name", ""),
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
resource.TestCheckResourceAttr(resourceName, "vlan_id", ""),
resource.TestCheckResourceAttr(resourceName, "vlan_id", "0"),
),
},
// Test import.
Expand Down

0 comments on commit c0cce82

Please sign in to comment.