Skip to content

Commit

Permalink
fix: Adding project_id block to fabric-cloud-router examples
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti-patl committed Jun 3, 2024
1 parent ca4f153 commit 5534f41
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/resource/equinix_fabric_cloud_router.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const router = new equinix.fabric.CloudRouter("router", {
account: {
accountNumber: 272010,
},
"project": {
"projectId": "995072000433550"
}
});
export const routerId = router.id;
```
Expand Down Expand Up @@ -52,6 +55,9 @@ router = equinix.fabric.CloudRouter("router",
account=equinix.fabric.CloudRouterAccountArgs(
account_number=272010,
))
project=equinix.fabric.CloudRouterProjectArgs(
project_id=995072000433550,
))
pulumi.export("routerId", router.id)
```
```go
Expand Down Expand Up @@ -91,6 +97,9 @@ func main() {
Account: &fabric.CloudRouterAccountArgs{
AccountNumber: pulumi.Int(272010),
},
Project: &fabric.CloudRouterProjectArgs{
ProjectId: pulumi.String("995072000433550"),
},
})
if err != nil {
return err
Expand Down Expand Up @@ -138,6 +147,10 @@ return await Deployment.RunAsync(() =>
{
AccountNumber = 272010,
},
Project = new Equinix.Fabric.Inputs.CloudRouterProjectArgs
{
ProjectId = "995072000433550",
},
});

return new Dictionary<string, object?>
Expand Down Expand Up @@ -190,6 +203,9 @@ public class App {
.account(CloudRouterAccountArgs.builder()
.accountNumber(272010)
.build())
.project(CloudRouterProjectArgs.builder()
.projectId("995072000433550")
.build())
.build());

ctx.export("routerId", router.id());
Expand Down Expand Up @@ -219,6 +235,8 @@ resources:
- [email protected]
account:
accountNumber: 272010
project:
projectId: 995072000433550
outputs:
routerId: ${router.id}
```
Expand Down

0 comments on commit 5534f41

Please sign in to comment.