-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adding project_id block to fabric-cloud-router examples
- Loading branch information
1 parent
ca4f153
commit 5534f41
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ const router = new equinix.fabric.CloudRouter("router", { | |
account: { | ||
accountNumber: 272010, | ||
}, | ||
"project": { | ||
"projectId": "995072000433550" | ||
} | ||
}); | ||
export const routerId = router.id; | ||
``` | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -138,6 +147,10 @@ return await Deployment.RunAsync(() => | |
{ | ||
AccountNumber = 272010, | ||
}, | ||
Project = new Equinix.Fabric.Inputs.CloudRouterProjectArgs | ||
{ | ||
ProjectId = "995072000433550", | ||
}, | ||
}); | ||
|
||
return new Dictionary<string, object?> | ||
|
@@ -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()); | ||
|
@@ -219,6 +235,8 @@ resources: | |
- [email protected] | ||
account: | ||
accountNumber: 272010 | ||
project: | ||
projectId: 995072000433550 | ||
outputs: | ||
routerId: ${router.id} | ||
``` | ||
|