Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
megaport_aws_vxc: implement connection visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Karagiannis <[email protected]>
  • Loading branch information
alkar committed Oct 30, 2019
1 parent 10190a1 commit 9f4b722
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megaport/resource_megaport_aws_vxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package megaport

import (
"log"
"strings"

"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/utilitywarehouse/terraform-provider-megaport/megaport/api"
Expand Down Expand Up @@ -70,6 +71,7 @@ func resourceMegaportVxcAwsEndElem() *schema.Resource {
Optional: true,
Computed: true,
},
"type": resourceAttributePrivatePublic(),
},
}
}
Expand All @@ -80,6 +82,7 @@ func flattenVxcEndAws(v api.ProductAssociatedVxcEnd, r api.ProductAssociatedVxcR
"aws_account_id": r.AwsVirtualInterface.OwnerAccount,
"customer_asn": int(r.AwsVirtualInterface.Asn),
"bgp_auth_key": r.AwsVirtualInterface.AuthKey,
"type": strings.ToLower(r.AwsVirtualInterface.Type),
}}
}

Expand Down

0 comments on commit 9f4b722

Please sign in to comment.