generated from pulumi/pulumi-tf-provider-boilerplate
/
aviatrixSpokeGateway.go
1424 lines (1298 loc) · 124 KB
/
aviatrixSpokeGateway.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package aviatrix
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Import
//
// **spoke_gateway** can be imported using the `gw_name`, e.g. ****
//
// ```sh
//
// $ pulumi import aviatrix:index/aviatrixSpokeGateway:AviatrixSpokeGateway test gw_name
//
// ```
type AviatrixSpokeGateway struct {
pulumi.CustomResourceState
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
AccountName pulumi.StringOutput `pulumi:"accountName"`
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
AllocateNewEip pulumi.BoolPtrOutput `pulumi:"allocateNewEip"`
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
ApprovedLearnedCidrs pulumi.StringArrayOutput `pulumi:"approvedLearnedCidrs"`
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
AvailabilityDomain pulumi.StringOutput `pulumi:"availabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
AzureEipNameResourceGroup pulumi.StringOutput `pulumi:"azureEipNameResourceGroup"`
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
BgpEcmp pulumi.BoolPtrOutput `pulumi:"bgpEcmp"`
// BGP hold time. Unit is in seconds. Valid values are between 12 and 360. Default value: 180.
BgpHoldTime pulumi.IntPtrOutput `pulumi:"bgpHoldTime"`
// BGP route polling time. Unit is in seconds. Valid values are between 10 and 50. Default value: "50".
BgpPollingTime pulumi.IntPtrOutput `pulumi:"bgpPollingTime"`
// Cloud instance ID of the spoke gateway.
CloudInstanceId pulumi.StringOutput `pulumi:"cloudInstanceId"`
// Type of cloud service provider, requires an integer value. Currently, only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192), AWS Top Secret(16384) and AWS Secret (32768) are supported.
CloudType pulumi.IntOutput `pulumi:"cloudType"`
// Customer managed key ID.
CustomerManagedKeys pulumi.StringPtrOutput `pulumi:"customerManagedKeys"`
// A list of comma separated CIDRs to be customized for the spoke VPC routes. When configured, it will replace all learned routes in VPC routing tables, including RFC1918 and non-RFC1918 CIDRs. It applies to this spoke gateway only. Example: "10.0.0.0/116,10.2.0.0/16".
CustomizedSpokeVpcRoutes pulumi.StringPtrOutput `pulumi:"customizedSpokeVpcRoutes"`
// Disables route propagation on BGP Spoke to attached Transit Gateway. Default value: false.
DisableRoutePropagation pulumi.BoolPtrOutput `pulumi:"disableRoutePropagation"`
// Required when `allocateNewEip` is false. It uses the specified EIP for this gateway. Available in Controller 4.7+. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
Eip pulumi.StringOutput `pulumi:"eip"`
// Enables [Active-Standby Mode](https://docs.aviatrix.com/HowTos/transit_advanced.html#active-standby). Available only with HA enabled. Valid values: true, false. Default value: false.
EnableActiveStandby pulumi.BoolPtrOutput `pulumi:"enableActiveStandby"`
// Enables Preemptive Mode for Active-Standby. Available only with BGP enabled, HA enabled and Active-Standby enabled. Valid values: true, false. Default value: false.
EnableActiveStandbyPreemptive pulumi.BoolPtrOutput `pulumi:"enableActiveStandbyPreemptive"`
// Auto Advertise Spoke Site2Cloud CIDRs. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableAutoAdvertiseS2cCidrs pulumi.BoolPtrOutput `pulumi:"enableAutoAdvertiseS2cCidrs"`
// Enable BGP for this spoke gateway. Only available for AWS and Azure. Valid values: true, false. Default value: false. Available in provider R2.21.0+.
EnableBgp pulumi.BoolPtrOutput `pulumi:"enableBgp"`
// Enable EBS volume encryption for Gateway. Only supports AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret providers. Valid values: true, false. Default value: false.
EnableEncryptVolume pulumi.BoolPtrOutput `pulumi:"enableEncryptVolume"`
// Enable jumbo frames for this spoke gateway. Default value is true.
EnableJumboFrame pulumi.BoolPtrOutput `pulumi:"enableJumboFrame"`
// Switch to enable/disable learned CIDR approval for BGP Spoke Gateway. Valid values: true, false. Default value: false.
EnableLearnedCidrsApproval pulumi.BoolPtrOutput `pulumi:"enableLearnedCidrsApproval"`
// If set to true, the [Monitor Gateway Subnets](https://docs.aviatrix.com/HowTos/gateway.html#monitor-gateway-subnet) feature is enabled. Default value is false. Available in provider version R2.18+.
EnableMonitorGatewaySubnets pulumi.BoolPtrOutput `pulumi:"enableMonitorGatewaySubnets"`
// Enable preserve asPath when advertising manual summary cidrs on BGP spoke gateway. Valid values: true, false. Default value: false. Available as of provider version R.2.22.1+
EnablePreserveAsPath pulumi.BoolPtrOutput `pulumi:"enablePreserveAsPath"`
// Enable Private OOB feature. Only available for AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
EnablePrivateOob pulumi.BoolPtrOutput `pulumi:"enablePrivateOob"`
// Program default route in VPC private route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnablePrivateVpcDefaultRoute pulumi.BoolPtrOutput `pulumi:"enablePrivateVpcDefaultRoute"`
// Skip programming VPC public route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableSkipPublicRouteTableUpdate pulumi.BoolPtrOutput `pulumi:"enableSkipPublicRouteTableUpdate"`
// Enable spot instance. NOT supported for production deployment.
EnableSpotInstance pulumi.BoolPtrOutput `pulumi:"enableSpotInstance"`
// Enable VPC DNS Server for Gateway. Currently only supported for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, Alibaba Cloud, AWS Top Secret and AWS Secret gateways. Valid values: true, false. Default value: false.
EnableVpcDnsServer pulumi.BoolPtrOutput `pulumi:"enableVpcDnsServer"`
// Fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
FaultDomain pulumi.StringOutput `pulumi:"faultDomain"`
// A list of comma separated CIDRs to be filtered from the spoke VPC route table. When configured, filtering CIDR(s) or it’s subnet will be deleted from VPC routing tables as well as from spoke gateway’s routing table. It applies to this spoke gateway only. Example: "10.2.0.0/116,10.3.0.0/16".
FilteredSpokeVpcRoutes pulumi.StringPtrOutput `pulumi:"filteredSpokeVpcRoutes"`
// Name of the gateway which is going to be created.
GwName pulumi.StringOutput `pulumi:"gwName"`
// Size of the gateway instance. Example: AWS/AWSGov/AWSChina: "t2.large", Azure/AzureGov/AzureChina: "Standard_B1s", OCI: "VM.Standard2.2", GCP: "n1-standard-1".
GwSize pulumi.StringOutput `pulumi:"gwSize"`
// HA gateway availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaAvailabilityDomain pulumi.StringOutput `pulumi:"haAvailabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the HA Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `haEip` is set and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
HaAzureEipNameResourceGroup pulumi.StringOutput `pulumi:"haAzureEipNameResourceGroup"`
// Cloud instance ID of the HA spoke gateway.
HaCloudInstanceId pulumi.StringOutput `pulumi:"haCloudInstanceId"`
// Public IP address that you want to assign to the HA peering instance. If no value is given, a new EIP will automatically be allocated. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
HaEip pulumi.StringOutput `pulumi:"haEip"`
// HA gateway fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaFaultDomain pulumi.StringOutput `pulumi:"haFaultDomain"`
// Aviatrix spoke gateway unique name of HA spoke gateway.
HaGwName pulumi.StringOutput `pulumi:"haGwName"`
// HA Gateway Size. Mandatory if enabling HA.
HaGwSize pulumi.StringPtrOutput `pulumi:"haGwSize"`
// The image version of the HA gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `haSoftwareVersion`. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
HaImageVersion pulumi.StringOutput `pulumi:"haImageVersion"`
// AZ of subnet being created for Insane Mode Spoke HA Gateway. Required for AWS, AzureGov, AWSGov, AWS Top Secret and AWS Secret if `insaneMode` is enabled and `haSubnet` is set. Example: AWS: "us-west-1a".
HaInsaneModeAz pulumi.StringPtrOutput `pulumi:"haInsaneModeAz"`
// HA OOB availability zone. Required if enabling Private OOB and HA. Example: "us-west-1b".
HaOobAvailabilityZone pulumi.StringPtrOutput `pulumi:"haOobAvailabilityZone"`
// HA OOB management subnet. Required if enabling Private OOB and HA. Example: "11.0.0.48/28".
HaOobManagementSubnet pulumi.StringPtrOutput `pulumi:"haOobManagementSubnet"`
// Private IP address of HA spoke gateway.
HaPrivateIp pulumi.StringOutput `pulumi:"haPrivateIp"`
// Availability Zone of the HA subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov with HA. Available in Provider version R2.23+.
HaPrivateModeSubnetZone pulumi.StringPtrOutput `pulumi:"haPrivateModeSubnetZone"`
// Public IP address of the HA Spoke Gateway.
HaPublicIp pulumi.StringOutput `pulumi:"haPublicIp"`
// HA security group used for the spoke gateway.
HaSecurityGroupId pulumi.StringOutput `pulumi:"haSecurityGroupId"`
// The software version of the HA gateway. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the HA gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
HaSoftwareVersion pulumi.StringOutput `pulumi:"haSoftwareVersion"`
// HA Subnet. Required if enabling HA for AWS, AWSGov, AWSChina, Azure, AzureGov, AzureChina, OCI, Alibaba Cloud, AWS Top Secret or AWS Secret gateways. Optional for GCP. Setting to empty/unsetting will disable HA. Setting to a valid subnet CIDR will create an HA gateway on the subnet. Example: "10.12.0.0/24"
HaSubnet pulumi.StringPtrOutput `pulumi:"haSubnet"`
// HA Zone. Required if enabling HA for GCP gateway. Optional for Azure. For GCP, setting to empty/unsetting will disable HA and setting to a valid zone will create an HA gateway in the zone. Example: "us-west1-c". For Azure, this is an optional parameter to place the HA gateway in a specific availability zone. Valid values for Azure gateways are in the form "az-n". Example: "az-2". Available for Azure as of provider version R2.17+.
HaZone pulumi.StringPtrOutput `pulumi:"haZone"`
// The image version of the gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `softwareVersion`. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
ImageVersion pulumi.StringOutput `pulumi:"imageVersion"`
// A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. When configured, it will replace all advertised routes from this VPC. Example: "10.4.0.0/116,10.5.0.0/16".
IncludedAdvertisedSpokeRoutes pulumi.StringPtrOutput `pulumi:"includedAdvertisedSpokeRoutes"`
// Enable [Insane Mode](https://docs.aviatrix.com/HowTos/insane_mode.html) for Spoke Gateway. Insane Mode gateway size must be at least c5 size (AWS, AWSGov, AWS China, AWS Top Secret and AWS Secret) or Standard_D3_v2 (Azure and AzureGov); for GCP only four size are supported: "n1-highcpu-4", "n1-highcpu-8", "n1-highcpu-16" and "n1-highcpu-32". If enabled, you must specify a valid /26 CIDR segment of the VPC to create a new subnet for AWS, Azure, AzureGov, AWSGov, AWS Top Secret and AWS Secret. Only available for AWS, GCP/OCI, Azure, AzureGov, AzureChina, AWSGov, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
InsaneMode pulumi.BoolPtrOutput `pulumi:"insaneMode"`
// AZ of subnet being created for Insane Mode Spoke Gateway. Required for AWS, AWSGov, AWS China, AWS Top Secret or AWS Secret if `insaneMode` is enabled. Example: AWS: "us-west-1a".
InsaneModeAz pulumi.StringPtrOutput `pulumi:"insaneModeAz"`
// Learned CIDRs approval mode. Either "gateway" (approval on a per-gateway basis) or "connection" (approval on a per-connection basis). Only "gateway" is supported for BGP SPOKE Gateway. Default value: "gateway". Available as of provider version R2.21+.
LearnedCidrsApprovalMode pulumi.StringPtrOutput `pulumi:"learnedCidrsApprovalMode"`
// Changes the Aviatrix Spoke Gateway ASN number before you setup Aviatrix Spoke Gateway connection configurations.
LocalAsNumber pulumi.StringOutput `pulumi:"localAsNumber"`
// Enable to manage spoke-to-Aviatrix transit gateway attachments using the **aviatrix_spoke_gateway** resource with the below `transitGw` attribute. If this is set to false, attaching this spoke to transit gateways must be done using the **aviatrix_spoke_transit_attachment** resource. Valid values: true, false. Default value: true. Available in provider R2.17+.
ManageTransitGatewayAttachment pulumi.BoolPtrOutput `pulumi:"manageTransitGatewayAttachment"`
// Set of monitored instance ids. Only valid when 'enable_monitor_gateway_subnets' = true. Available in provider version R2.18+.
MonitorExcludeLists pulumi.StringArrayOutput `pulumi:"monitorExcludeLists"`
// OOB availability zone. Required if enabling Private OOB. Example: "us-west-1a".
OobAvailabilityZone pulumi.StringPtrOutput `pulumi:"oobAvailabilityZone"`
// OOB management subnet. Required if enabling Private OOB. Example: "11.0.2.0/24".
OobManagementSubnet pulumi.StringPtrOutput `pulumi:"oobManagementSubnet"`
// List of AS numbers to populate BGP AS_PATH field when it advertises to VGW or peer devices.
PrependAsPaths pulumi.StringArrayOutput `pulumi:"prependAsPaths"`
// Private IP address of the spoke gateway created.
PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
// VPC ID of Private Mode load balancer. Required when Private Mode is enabled on the Controller. Available in provider version R2.23+.
PrivateModeLbVpcId pulumi.StringPtrOutput `pulumi:"privateModeLbVpcId"`
// Availability Zone of the subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov. Available in Provider version R2.23+.
PrivateModeSubnetZone pulumi.StringPtrOutput `pulumi:"privateModeSubnetZone"`
// Public IP address of the Spoke Gateway created.
PublicIp pulumi.StringOutput `pulumi:"publicIp"`
// Gateway ethernet interface RX queue size. Once set, can't be deleted or disabled. Available for AWS as of provider version R2.22+.
RxQueueSize pulumi.StringPtrOutput `pulumi:"rxQueueSize"`
// Security group used for the spoke gateway.
SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
// Set to true if this [feature](https://docs.aviatrix.com/Solutions/gateway_ha.html#single-az-gateway) is desired. Valid values: true, false.
SingleAzHa pulumi.BoolPtrOutput `pulumi:"singleAzHa"`
// Specify whether to enable Source NAT feature in "singleIp" mode on the gateway or not. Please disable AWS NAT instance before enabling this feature. Currently only supports AWS(1) and Azure(8). Valid values: true, false.
SingleIpSnat pulumi.BoolPtrOutput `pulumi:"singleIpSnat"`
// The software version of the gateway. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
SoftwareVersion pulumi.StringOutput `pulumi:"softwareVersion"`
// Intended CIDR list to be advertised to external BGP router. Empty list is not valid. Example: ["10.2.0.0/16", "10.4.0.0/16"].
SpokeBgpManualAdvertiseCidrs pulumi.StringArrayOutput `pulumi:"spokeBgpManualAdvertiseCidrs"`
// Price for spot instance. NOT supported for production deployment.
SpotPrice pulumi.StringPtrOutput `pulumi:"spotPrice"`
// A VPC Network address range selected from one of the available network ranges. Example: "172.31.0.0/20". **NOTE: If using `insaneMode`, please see notes here.**
Subnet pulumi.StringOutput `pulumi:"subnet"`
// (Optional) Instance tag of cloud provider. Only supported for AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina. Example: ["key1:value1", "key2:value2"].
//
// Deprecated: Use tags instead.
TagLists pulumi.StringArrayOutput `pulumi:"tagLists"`
// Map of tags to assign to the gateway. Only available for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret gateways. Allowed characters vary by cloud type but always include: letters, spaces, and numbers. AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret allow the use of any character. Azure, AzureGov and AzureChina allows the following special characters: + - = . _ : @. Example: {"key1" = "value1", "key2" = "value2"}.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Specify the Aviatrix transit gateways to attach this spoke gateway to. Format is a comma separated list of transit gateway names. For example: "transit-gw1,transit-gw2".
//
// Deprecated: Please set `manage_transit_gateway_attachment` to false, and use the standalone aviatrix_spoke_transit_attachment resource instead.
TransitGw pulumi.StringPtrOutput `pulumi:"transitGw"`
// The IPSec tunnel down detection time for the Spoke Gateway.
TunnelDetectionTime pulumi.IntOutput `pulumi:"tunnelDetectionTime"`
// VPC-ID/VNet-Name of cloud provider. Example: AWS/AWSGov/AWSChina: "vpc-abcd1234", GCP: "vpc-gcp-test~-~project-id", Azure/AzureGov/AzureChina: "vnet_name:rg_name:resource_guid", OCI: "ocid1.vcn.oc1.iad.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq".
VpcId pulumi.StringOutput `pulumi:"vpcId"`
// Region of cloud provider. Example: AWS: "us-east-1", GCP: "us-west2-a", Azure: "East US 2", OCI: "us-ashburn-1", AzureGov: "USGov Arizona", AWSGov: "us-gov-west-1, AWSChina: "cn-north-1", AzureChina: "China North", AWS Top Secret: "us-iso-east-1", AWS Secret: "us-isob-east-1".
VpcReg pulumi.StringOutput `pulumi:"vpcReg"`
// Availability Zone. Only available for cloudType = 8 (Azure). Must be in the form 'az-n', for example, 'az-2'. Available in provider version R2.17+.
Zone pulumi.StringPtrOutput `pulumi:"zone"`
}
// NewAviatrixSpokeGateway registers a new resource with the given unique name, arguments, and options.
func NewAviatrixSpokeGateway(ctx *pulumi.Context,
name string, args *AviatrixSpokeGatewayArgs, opts ...pulumi.ResourceOption) (*AviatrixSpokeGateway, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AccountName == nil {
return nil, errors.New("invalid value for required argument 'AccountName'")
}
if args.CloudType == nil {
return nil, errors.New("invalid value for required argument 'CloudType'")
}
if args.GwName == nil {
return nil, errors.New("invalid value for required argument 'GwName'")
}
if args.GwSize == nil {
return nil, errors.New("invalid value for required argument 'GwSize'")
}
if args.Subnet == nil {
return nil, errors.New("invalid value for required argument 'Subnet'")
}
if args.VpcId == nil {
return nil, errors.New("invalid value for required argument 'VpcId'")
}
if args.VpcReg == nil {
return nil, errors.New("invalid value for required argument 'VpcReg'")
}
if args.CustomerManagedKeys != nil {
args.CustomerManagedKeys = pulumi.ToSecret(args.CustomerManagedKeys).(pulumi.StringPtrOutput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"customerManagedKeys",
})
opts = append(opts, secrets)
opts = pkgResourceDefaultOpts(opts)
var resource AviatrixSpokeGateway
err := ctx.RegisterResource("aviatrix:index/aviatrixSpokeGateway:AviatrixSpokeGateway", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAviatrixSpokeGateway gets an existing AviatrixSpokeGateway resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetAviatrixSpokeGateway(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AviatrixSpokeGatewayState, opts ...pulumi.ResourceOption) (*AviatrixSpokeGateway, error) {
var resource AviatrixSpokeGateway
err := ctx.ReadResource("aviatrix:index/aviatrixSpokeGateway:AviatrixSpokeGateway", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AviatrixSpokeGateway resources.
type aviatrixSpokeGatewayState struct {
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
AccountName *string `pulumi:"accountName"`
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
AllocateNewEip *bool `pulumi:"allocateNewEip"`
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
ApprovedLearnedCidrs []string `pulumi:"approvedLearnedCidrs"`
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
AvailabilityDomain *string `pulumi:"availabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
AzureEipNameResourceGroup *string `pulumi:"azureEipNameResourceGroup"`
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
BgpEcmp *bool `pulumi:"bgpEcmp"`
// BGP hold time. Unit is in seconds. Valid values are between 12 and 360. Default value: 180.
BgpHoldTime *int `pulumi:"bgpHoldTime"`
// BGP route polling time. Unit is in seconds. Valid values are between 10 and 50. Default value: "50".
BgpPollingTime *int `pulumi:"bgpPollingTime"`
// Cloud instance ID of the spoke gateway.
CloudInstanceId *string `pulumi:"cloudInstanceId"`
// Type of cloud service provider, requires an integer value. Currently, only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192), AWS Top Secret(16384) and AWS Secret (32768) are supported.
CloudType *int `pulumi:"cloudType"`
// Customer managed key ID.
CustomerManagedKeys *string `pulumi:"customerManagedKeys"`
// A list of comma separated CIDRs to be customized for the spoke VPC routes. When configured, it will replace all learned routes in VPC routing tables, including RFC1918 and non-RFC1918 CIDRs. It applies to this spoke gateway only. Example: "10.0.0.0/116,10.2.0.0/16".
CustomizedSpokeVpcRoutes *string `pulumi:"customizedSpokeVpcRoutes"`
// Disables route propagation on BGP Spoke to attached Transit Gateway. Default value: false.
DisableRoutePropagation *bool `pulumi:"disableRoutePropagation"`
// Required when `allocateNewEip` is false. It uses the specified EIP for this gateway. Available in Controller 4.7+. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
Eip *string `pulumi:"eip"`
// Enables [Active-Standby Mode](https://docs.aviatrix.com/HowTos/transit_advanced.html#active-standby). Available only with HA enabled. Valid values: true, false. Default value: false.
EnableActiveStandby *bool `pulumi:"enableActiveStandby"`
// Enables Preemptive Mode for Active-Standby. Available only with BGP enabled, HA enabled and Active-Standby enabled. Valid values: true, false. Default value: false.
EnableActiveStandbyPreemptive *bool `pulumi:"enableActiveStandbyPreemptive"`
// Auto Advertise Spoke Site2Cloud CIDRs. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableAutoAdvertiseS2cCidrs *bool `pulumi:"enableAutoAdvertiseS2cCidrs"`
// Enable BGP for this spoke gateway. Only available for AWS and Azure. Valid values: true, false. Default value: false. Available in provider R2.21.0+.
EnableBgp *bool `pulumi:"enableBgp"`
// Enable EBS volume encryption for Gateway. Only supports AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret providers. Valid values: true, false. Default value: false.
EnableEncryptVolume *bool `pulumi:"enableEncryptVolume"`
// Enable jumbo frames for this spoke gateway. Default value is true.
EnableJumboFrame *bool `pulumi:"enableJumboFrame"`
// Switch to enable/disable learned CIDR approval for BGP Spoke Gateway. Valid values: true, false. Default value: false.
EnableLearnedCidrsApproval *bool `pulumi:"enableLearnedCidrsApproval"`
// If set to true, the [Monitor Gateway Subnets](https://docs.aviatrix.com/HowTos/gateway.html#monitor-gateway-subnet) feature is enabled. Default value is false. Available in provider version R2.18+.
EnableMonitorGatewaySubnets *bool `pulumi:"enableMonitorGatewaySubnets"`
// Enable preserve asPath when advertising manual summary cidrs on BGP spoke gateway. Valid values: true, false. Default value: false. Available as of provider version R.2.22.1+
EnablePreserveAsPath *bool `pulumi:"enablePreserveAsPath"`
// Enable Private OOB feature. Only available for AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
EnablePrivateOob *bool `pulumi:"enablePrivateOob"`
// Program default route in VPC private route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnablePrivateVpcDefaultRoute *bool `pulumi:"enablePrivateVpcDefaultRoute"`
// Skip programming VPC public route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableSkipPublicRouteTableUpdate *bool `pulumi:"enableSkipPublicRouteTableUpdate"`
// Enable spot instance. NOT supported for production deployment.
EnableSpotInstance *bool `pulumi:"enableSpotInstance"`
// Enable VPC DNS Server for Gateway. Currently only supported for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, Alibaba Cloud, AWS Top Secret and AWS Secret gateways. Valid values: true, false. Default value: false.
EnableVpcDnsServer *bool `pulumi:"enableVpcDnsServer"`
// Fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
FaultDomain *string `pulumi:"faultDomain"`
// A list of comma separated CIDRs to be filtered from the spoke VPC route table. When configured, filtering CIDR(s) or it’s subnet will be deleted from VPC routing tables as well as from spoke gateway’s routing table. It applies to this spoke gateway only. Example: "10.2.0.0/116,10.3.0.0/16".
FilteredSpokeVpcRoutes *string `pulumi:"filteredSpokeVpcRoutes"`
// Name of the gateway which is going to be created.
GwName *string `pulumi:"gwName"`
// Size of the gateway instance. Example: AWS/AWSGov/AWSChina: "t2.large", Azure/AzureGov/AzureChina: "Standard_B1s", OCI: "VM.Standard2.2", GCP: "n1-standard-1".
GwSize *string `pulumi:"gwSize"`
// HA gateway availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaAvailabilityDomain *string `pulumi:"haAvailabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the HA Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `haEip` is set and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
HaAzureEipNameResourceGroup *string `pulumi:"haAzureEipNameResourceGroup"`
// Cloud instance ID of the HA spoke gateway.
HaCloudInstanceId *string `pulumi:"haCloudInstanceId"`
// Public IP address that you want to assign to the HA peering instance. If no value is given, a new EIP will automatically be allocated. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
HaEip *string `pulumi:"haEip"`
// HA gateway fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaFaultDomain *string `pulumi:"haFaultDomain"`
// Aviatrix spoke gateway unique name of HA spoke gateway.
HaGwName *string `pulumi:"haGwName"`
// HA Gateway Size. Mandatory if enabling HA.
HaGwSize *string `pulumi:"haGwSize"`
// The image version of the HA gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `haSoftwareVersion`. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
HaImageVersion *string `pulumi:"haImageVersion"`
// AZ of subnet being created for Insane Mode Spoke HA Gateway. Required for AWS, AzureGov, AWSGov, AWS Top Secret and AWS Secret if `insaneMode` is enabled and `haSubnet` is set. Example: AWS: "us-west-1a".
HaInsaneModeAz *string `pulumi:"haInsaneModeAz"`
// HA OOB availability zone. Required if enabling Private OOB and HA. Example: "us-west-1b".
HaOobAvailabilityZone *string `pulumi:"haOobAvailabilityZone"`
// HA OOB management subnet. Required if enabling Private OOB and HA. Example: "11.0.0.48/28".
HaOobManagementSubnet *string `pulumi:"haOobManagementSubnet"`
// Private IP address of HA spoke gateway.
HaPrivateIp *string `pulumi:"haPrivateIp"`
// Availability Zone of the HA subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov with HA. Available in Provider version R2.23+.
HaPrivateModeSubnetZone *string `pulumi:"haPrivateModeSubnetZone"`
// Public IP address of the HA Spoke Gateway.
HaPublicIp *string `pulumi:"haPublicIp"`
// HA security group used for the spoke gateway.
HaSecurityGroupId *string `pulumi:"haSecurityGroupId"`
// The software version of the HA gateway. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the HA gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
HaSoftwareVersion *string `pulumi:"haSoftwareVersion"`
// HA Subnet. Required if enabling HA for AWS, AWSGov, AWSChina, Azure, AzureGov, AzureChina, OCI, Alibaba Cloud, AWS Top Secret or AWS Secret gateways. Optional for GCP. Setting to empty/unsetting will disable HA. Setting to a valid subnet CIDR will create an HA gateway on the subnet. Example: "10.12.0.0/24"
HaSubnet *string `pulumi:"haSubnet"`
// HA Zone. Required if enabling HA for GCP gateway. Optional for Azure. For GCP, setting to empty/unsetting will disable HA and setting to a valid zone will create an HA gateway in the zone. Example: "us-west1-c". For Azure, this is an optional parameter to place the HA gateway in a specific availability zone. Valid values for Azure gateways are in the form "az-n". Example: "az-2". Available for Azure as of provider version R2.17+.
HaZone *string `pulumi:"haZone"`
// The image version of the gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `softwareVersion`. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
ImageVersion *string `pulumi:"imageVersion"`
// A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. When configured, it will replace all advertised routes from this VPC. Example: "10.4.0.0/116,10.5.0.0/16".
IncludedAdvertisedSpokeRoutes *string `pulumi:"includedAdvertisedSpokeRoutes"`
// Enable [Insane Mode](https://docs.aviatrix.com/HowTos/insane_mode.html) for Spoke Gateway. Insane Mode gateway size must be at least c5 size (AWS, AWSGov, AWS China, AWS Top Secret and AWS Secret) or Standard_D3_v2 (Azure and AzureGov); for GCP only four size are supported: "n1-highcpu-4", "n1-highcpu-8", "n1-highcpu-16" and "n1-highcpu-32". If enabled, you must specify a valid /26 CIDR segment of the VPC to create a new subnet for AWS, Azure, AzureGov, AWSGov, AWS Top Secret and AWS Secret. Only available for AWS, GCP/OCI, Azure, AzureGov, AzureChina, AWSGov, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
InsaneMode *bool `pulumi:"insaneMode"`
// AZ of subnet being created for Insane Mode Spoke Gateway. Required for AWS, AWSGov, AWS China, AWS Top Secret or AWS Secret if `insaneMode` is enabled. Example: AWS: "us-west-1a".
InsaneModeAz *string `pulumi:"insaneModeAz"`
// Learned CIDRs approval mode. Either "gateway" (approval on a per-gateway basis) or "connection" (approval on a per-connection basis). Only "gateway" is supported for BGP SPOKE Gateway. Default value: "gateway". Available as of provider version R2.21+.
LearnedCidrsApprovalMode *string `pulumi:"learnedCidrsApprovalMode"`
// Changes the Aviatrix Spoke Gateway ASN number before you setup Aviatrix Spoke Gateway connection configurations.
LocalAsNumber *string `pulumi:"localAsNumber"`
// Enable to manage spoke-to-Aviatrix transit gateway attachments using the **aviatrix_spoke_gateway** resource with the below `transitGw` attribute. If this is set to false, attaching this spoke to transit gateways must be done using the **aviatrix_spoke_transit_attachment** resource. Valid values: true, false. Default value: true. Available in provider R2.17+.
ManageTransitGatewayAttachment *bool `pulumi:"manageTransitGatewayAttachment"`
// Set of monitored instance ids. Only valid when 'enable_monitor_gateway_subnets' = true. Available in provider version R2.18+.
MonitorExcludeLists []string `pulumi:"monitorExcludeLists"`
// OOB availability zone. Required if enabling Private OOB. Example: "us-west-1a".
OobAvailabilityZone *string `pulumi:"oobAvailabilityZone"`
// OOB management subnet. Required if enabling Private OOB. Example: "11.0.2.0/24".
OobManagementSubnet *string `pulumi:"oobManagementSubnet"`
// List of AS numbers to populate BGP AS_PATH field when it advertises to VGW or peer devices.
PrependAsPaths []string `pulumi:"prependAsPaths"`
// Private IP address of the spoke gateway created.
PrivateIp *string `pulumi:"privateIp"`
// VPC ID of Private Mode load balancer. Required when Private Mode is enabled on the Controller. Available in provider version R2.23+.
PrivateModeLbVpcId *string `pulumi:"privateModeLbVpcId"`
// Availability Zone of the subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov. Available in Provider version R2.23+.
PrivateModeSubnetZone *string `pulumi:"privateModeSubnetZone"`
// Public IP address of the Spoke Gateway created.
PublicIp *string `pulumi:"publicIp"`
// Gateway ethernet interface RX queue size. Once set, can't be deleted or disabled. Available for AWS as of provider version R2.22+.
RxQueueSize *string `pulumi:"rxQueueSize"`
// Security group used for the spoke gateway.
SecurityGroupId *string `pulumi:"securityGroupId"`
// Set to true if this [feature](https://docs.aviatrix.com/Solutions/gateway_ha.html#single-az-gateway) is desired. Valid values: true, false.
SingleAzHa *bool `pulumi:"singleAzHa"`
// Specify whether to enable Source NAT feature in "singleIp" mode on the gateway or not. Please disable AWS NAT instance before enabling this feature. Currently only supports AWS(1) and Azure(8). Valid values: true, false.
SingleIpSnat *bool `pulumi:"singleIpSnat"`
// The software version of the gateway. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
SoftwareVersion *string `pulumi:"softwareVersion"`
// Intended CIDR list to be advertised to external BGP router. Empty list is not valid. Example: ["10.2.0.0/16", "10.4.0.0/16"].
SpokeBgpManualAdvertiseCidrs []string `pulumi:"spokeBgpManualAdvertiseCidrs"`
// Price for spot instance. NOT supported for production deployment.
SpotPrice *string `pulumi:"spotPrice"`
// A VPC Network address range selected from one of the available network ranges. Example: "172.31.0.0/20". **NOTE: If using `insaneMode`, please see notes here.**
Subnet *string `pulumi:"subnet"`
// (Optional) Instance tag of cloud provider. Only supported for AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina. Example: ["key1:value1", "key2:value2"].
//
// Deprecated: Use tags instead.
TagLists []string `pulumi:"tagLists"`
// Map of tags to assign to the gateway. Only available for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret gateways. Allowed characters vary by cloud type but always include: letters, spaces, and numbers. AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret allow the use of any character. Azure, AzureGov and AzureChina allows the following special characters: + - = . _ : @. Example: {"key1" = "value1", "key2" = "value2"}.
Tags map[string]string `pulumi:"tags"`
// Specify the Aviatrix transit gateways to attach this spoke gateway to. Format is a comma separated list of transit gateway names. For example: "transit-gw1,transit-gw2".
//
// Deprecated: Please set `manage_transit_gateway_attachment` to false, and use the standalone aviatrix_spoke_transit_attachment resource instead.
TransitGw *string `pulumi:"transitGw"`
// The IPSec tunnel down detection time for the Spoke Gateway.
TunnelDetectionTime *int `pulumi:"tunnelDetectionTime"`
// VPC-ID/VNet-Name of cloud provider. Example: AWS/AWSGov/AWSChina: "vpc-abcd1234", GCP: "vpc-gcp-test~-~project-id", Azure/AzureGov/AzureChina: "vnet_name:rg_name:resource_guid", OCI: "ocid1.vcn.oc1.iad.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq".
VpcId *string `pulumi:"vpcId"`
// Region of cloud provider. Example: AWS: "us-east-1", GCP: "us-west2-a", Azure: "East US 2", OCI: "us-ashburn-1", AzureGov: "USGov Arizona", AWSGov: "us-gov-west-1, AWSChina: "cn-north-1", AzureChina: "China North", AWS Top Secret: "us-iso-east-1", AWS Secret: "us-isob-east-1".
VpcReg *string `pulumi:"vpcReg"`
// Availability Zone. Only available for cloudType = 8 (Azure). Must be in the form 'az-n', for example, 'az-2'. Available in provider version R2.17+.
Zone *string `pulumi:"zone"`
}
type AviatrixSpokeGatewayState struct {
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
AccountName pulumi.StringPtrInput
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
AllocateNewEip pulumi.BoolPtrInput
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
ApprovedLearnedCidrs pulumi.StringArrayInput
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
AvailabilityDomain pulumi.StringPtrInput
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
AzureEipNameResourceGroup pulumi.StringPtrInput
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
BgpEcmp pulumi.BoolPtrInput
// BGP hold time. Unit is in seconds. Valid values are between 12 and 360. Default value: 180.
BgpHoldTime pulumi.IntPtrInput
// BGP route polling time. Unit is in seconds. Valid values are between 10 and 50. Default value: "50".
BgpPollingTime pulumi.IntPtrInput
// Cloud instance ID of the spoke gateway.
CloudInstanceId pulumi.StringPtrInput
// Type of cloud service provider, requires an integer value. Currently, only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192), AWS Top Secret(16384) and AWS Secret (32768) are supported.
CloudType pulumi.IntPtrInput
// Customer managed key ID.
CustomerManagedKeys pulumi.StringPtrInput
// A list of comma separated CIDRs to be customized for the spoke VPC routes. When configured, it will replace all learned routes in VPC routing tables, including RFC1918 and non-RFC1918 CIDRs. It applies to this spoke gateway only. Example: "10.0.0.0/116,10.2.0.0/16".
CustomizedSpokeVpcRoutes pulumi.StringPtrInput
// Disables route propagation on BGP Spoke to attached Transit Gateway. Default value: false.
DisableRoutePropagation pulumi.BoolPtrInput
// Required when `allocateNewEip` is false. It uses the specified EIP for this gateway. Available in Controller 4.7+. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
Eip pulumi.StringPtrInput
// Enables [Active-Standby Mode](https://docs.aviatrix.com/HowTos/transit_advanced.html#active-standby). Available only with HA enabled. Valid values: true, false. Default value: false.
EnableActiveStandby pulumi.BoolPtrInput
// Enables Preemptive Mode for Active-Standby. Available only with BGP enabled, HA enabled and Active-Standby enabled. Valid values: true, false. Default value: false.
EnableActiveStandbyPreemptive pulumi.BoolPtrInput
// Auto Advertise Spoke Site2Cloud CIDRs. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableAutoAdvertiseS2cCidrs pulumi.BoolPtrInput
// Enable BGP for this spoke gateway. Only available for AWS and Azure. Valid values: true, false. Default value: false. Available in provider R2.21.0+.
EnableBgp pulumi.BoolPtrInput
// Enable EBS volume encryption for Gateway. Only supports AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret providers. Valid values: true, false. Default value: false.
EnableEncryptVolume pulumi.BoolPtrInput
// Enable jumbo frames for this spoke gateway. Default value is true.
EnableJumboFrame pulumi.BoolPtrInput
// Switch to enable/disable learned CIDR approval for BGP Spoke Gateway. Valid values: true, false. Default value: false.
EnableLearnedCidrsApproval pulumi.BoolPtrInput
// If set to true, the [Monitor Gateway Subnets](https://docs.aviatrix.com/HowTos/gateway.html#monitor-gateway-subnet) feature is enabled. Default value is false. Available in provider version R2.18+.
EnableMonitorGatewaySubnets pulumi.BoolPtrInput
// Enable preserve asPath when advertising manual summary cidrs on BGP spoke gateway. Valid values: true, false. Default value: false. Available as of provider version R.2.22.1+
EnablePreserveAsPath pulumi.BoolPtrInput
// Enable Private OOB feature. Only available for AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
EnablePrivateOob pulumi.BoolPtrInput
// Program default route in VPC private route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnablePrivateVpcDefaultRoute pulumi.BoolPtrInput
// Skip programming VPC public route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableSkipPublicRouteTableUpdate pulumi.BoolPtrInput
// Enable spot instance. NOT supported for production deployment.
EnableSpotInstance pulumi.BoolPtrInput
// Enable VPC DNS Server for Gateway. Currently only supported for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, Alibaba Cloud, AWS Top Secret and AWS Secret gateways. Valid values: true, false. Default value: false.
EnableVpcDnsServer pulumi.BoolPtrInput
// Fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
FaultDomain pulumi.StringPtrInput
// A list of comma separated CIDRs to be filtered from the spoke VPC route table. When configured, filtering CIDR(s) or it’s subnet will be deleted from VPC routing tables as well as from spoke gateway’s routing table. It applies to this spoke gateway only. Example: "10.2.0.0/116,10.3.0.0/16".
FilteredSpokeVpcRoutes pulumi.StringPtrInput
// Name of the gateway which is going to be created.
GwName pulumi.StringPtrInput
// Size of the gateway instance. Example: AWS/AWSGov/AWSChina: "t2.large", Azure/AzureGov/AzureChina: "Standard_B1s", OCI: "VM.Standard2.2", GCP: "n1-standard-1".
GwSize pulumi.StringPtrInput
// HA gateway availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaAvailabilityDomain pulumi.StringPtrInput
// Name of public IP Address resource and its resource group in Azure to be assigned to the HA Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `haEip` is set and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
HaAzureEipNameResourceGroup pulumi.StringPtrInput
// Cloud instance ID of the HA spoke gateway.
HaCloudInstanceId pulumi.StringPtrInput
// Public IP address that you want to assign to the HA peering instance. If no value is given, a new EIP will automatically be allocated. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
HaEip pulumi.StringPtrInput
// HA gateway fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaFaultDomain pulumi.StringPtrInput
// Aviatrix spoke gateway unique name of HA spoke gateway.
HaGwName pulumi.StringPtrInput
// HA Gateway Size. Mandatory if enabling HA.
HaGwSize pulumi.StringPtrInput
// The image version of the HA gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `haSoftwareVersion`. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
HaImageVersion pulumi.StringPtrInput
// AZ of subnet being created for Insane Mode Spoke HA Gateway. Required for AWS, AzureGov, AWSGov, AWS Top Secret and AWS Secret if `insaneMode` is enabled and `haSubnet` is set. Example: AWS: "us-west-1a".
HaInsaneModeAz pulumi.StringPtrInput
// HA OOB availability zone. Required if enabling Private OOB and HA. Example: "us-west-1b".
HaOobAvailabilityZone pulumi.StringPtrInput
// HA OOB management subnet. Required if enabling Private OOB and HA. Example: "11.0.0.48/28".
HaOobManagementSubnet pulumi.StringPtrInput
// Private IP address of HA spoke gateway.
HaPrivateIp pulumi.StringPtrInput
// Availability Zone of the HA subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov with HA. Available in Provider version R2.23+.
HaPrivateModeSubnetZone pulumi.StringPtrInput
// Public IP address of the HA Spoke Gateway.
HaPublicIp pulumi.StringPtrInput
// HA security group used for the spoke gateway.
HaSecurityGroupId pulumi.StringPtrInput
// The software version of the HA gateway. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the HA gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
HaSoftwareVersion pulumi.StringPtrInput
// HA Subnet. Required if enabling HA for AWS, AWSGov, AWSChina, Azure, AzureGov, AzureChina, OCI, Alibaba Cloud, AWS Top Secret or AWS Secret gateways. Optional for GCP. Setting to empty/unsetting will disable HA. Setting to a valid subnet CIDR will create an HA gateway on the subnet. Example: "10.12.0.0/24"
HaSubnet pulumi.StringPtrInput
// HA Zone. Required if enabling HA for GCP gateway. Optional for Azure. For GCP, setting to empty/unsetting will disable HA and setting to a valid zone will create an HA gateway in the zone. Example: "us-west1-c". For Azure, this is an optional parameter to place the HA gateway in a specific availability zone. Valid values for Azure gateways are in the form "az-n". Example: "az-2". Available for Azure as of provider version R2.17+.
HaZone pulumi.StringPtrInput
// The image version of the gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `softwareVersion`. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
ImageVersion pulumi.StringPtrInput
// A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. When configured, it will replace all advertised routes from this VPC. Example: "10.4.0.0/116,10.5.0.0/16".
IncludedAdvertisedSpokeRoutes pulumi.StringPtrInput
// Enable [Insane Mode](https://docs.aviatrix.com/HowTos/insane_mode.html) for Spoke Gateway. Insane Mode gateway size must be at least c5 size (AWS, AWSGov, AWS China, AWS Top Secret and AWS Secret) or Standard_D3_v2 (Azure and AzureGov); for GCP only four size are supported: "n1-highcpu-4", "n1-highcpu-8", "n1-highcpu-16" and "n1-highcpu-32". If enabled, you must specify a valid /26 CIDR segment of the VPC to create a new subnet for AWS, Azure, AzureGov, AWSGov, AWS Top Secret and AWS Secret. Only available for AWS, GCP/OCI, Azure, AzureGov, AzureChina, AWSGov, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
InsaneMode pulumi.BoolPtrInput
// AZ of subnet being created for Insane Mode Spoke Gateway. Required for AWS, AWSGov, AWS China, AWS Top Secret or AWS Secret if `insaneMode` is enabled. Example: AWS: "us-west-1a".
InsaneModeAz pulumi.StringPtrInput
// Learned CIDRs approval mode. Either "gateway" (approval on a per-gateway basis) or "connection" (approval on a per-connection basis). Only "gateway" is supported for BGP SPOKE Gateway. Default value: "gateway". Available as of provider version R2.21+.
LearnedCidrsApprovalMode pulumi.StringPtrInput
// Changes the Aviatrix Spoke Gateway ASN number before you setup Aviatrix Spoke Gateway connection configurations.
LocalAsNumber pulumi.StringPtrInput
// Enable to manage spoke-to-Aviatrix transit gateway attachments using the **aviatrix_spoke_gateway** resource with the below `transitGw` attribute. If this is set to false, attaching this spoke to transit gateways must be done using the **aviatrix_spoke_transit_attachment** resource. Valid values: true, false. Default value: true. Available in provider R2.17+.
ManageTransitGatewayAttachment pulumi.BoolPtrInput
// Set of monitored instance ids. Only valid when 'enable_monitor_gateway_subnets' = true. Available in provider version R2.18+.
MonitorExcludeLists pulumi.StringArrayInput
// OOB availability zone. Required if enabling Private OOB. Example: "us-west-1a".
OobAvailabilityZone pulumi.StringPtrInput
// OOB management subnet. Required if enabling Private OOB. Example: "11.0.2.0/24".
OobManagementSubnet pulumi.StringPtrInput
// List of AS numbers to populate BGP AS_PATH field when it advertises to VGW or peer devices.
PrependAsPaths pulumi.StringArrayInput
// Private IP address of the spoke gateway created.
PrivateIp pulumi.StringPtrInput
// VPC ID of Private Mode load balancer. Required when Private Mode is enabled on the Controller. Available in provider version R2.23+.
PrivateModeLbVpcId pulumi.StringPtrInput
// Availability Zone of the subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov. Available in Provider version R2.23+.
PrivateModeSubnetZone pulumi.StringPtrInput
// Public IP address of the Spoke Gateway created.
PublicIp pulumi.StringPtrInput
// Gateway ethernet interface RX queue size. Once set, can't be deleted or disabled. Available for AWS as of provider version R2.22+.
RxQueueSize pulumi.StringPtrInput
// Security group used for the spoke gateway.
SecurityGroupId pulumi.StringPtrInput
// Set to true if this [feature](https://docs.aviatrix.com/Solutions/gateway_ha.html#single-az-gateway) is desired. Valid values: true, false.
SingleAzHa pulumi.BoolPtrInput
// Specify whether to enable Source NAT feature in "singleIp" mode on the gateway or not. Please disable AWS NAT instance before enabling this feature. Currently only supports AWS(1) and Azure(8). Valid values: true, false.
SingleIpSnat pulumi.BoolPtrInput
// The software version of the gateway. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
SoftwareVersion pulumi.StringPtrInput
// Intended CIDR list to be advertised to external BGP router. Empty list is not valid. Example: ["10.2.0.0/16", "10.4.0.0/16"].
SpokeBgpManualAdvertiseCidrs pulumi.StringArrayInput
// Price for spot instance. NOT supported for production deployment.
SpotPrice pulumi.StringPtrInput
// A VPC Network address range selected from one of the available network ranges. Example: "172.31.0.0/20". **NOTE: If using `insaneMode`, please see notes here.**
Subnet pulumi.StringPtrInput
// (Optional) Instance tag of cloud provider. Only supported for AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina. Example: ["key1:value1", "key2:value2"].
//
// Deprecated: Use tags instead.
TagLists pulumi.StringArrayInput
// Map of tags to assign to the gateway. Only available for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret gateways. Allowed characters vary by cloud type but always include: letters, spaces, and numbers. AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret allow the use of any character. Azure, AzureGov and AzureChina allows the following special characters: + - = . _ : @. Example: {"key1" = "value1", "key2" = "value2"}.
Tags pulumi.StringMapInput
// Specify the Aviatrix transit gateways to attach this spoke gateway to. Format is a comma separated list of transit gateway names. For example: "transit-gw1,transit-gw2".
//
// Deprecated: Please set `manage_transit_gateway_attachment` to false, and use the standalone aviatrix_spoke_transit_attachment resource instead.
TransitGw pulumi.StringPtrInput
// The IPSec tunnel down detection time for the Spoke Gateway.
TunnelDetectionTime pulumi.IntPtrInput
// VPC-ID/VNet-Name of cloud provider. Example: AWS/AWSGov/AWSChina: "vpc-abcd1234", GCP: "vpc-gcp-test~-~project-id", Azure/AzureGov/AzureChina: "vnet_name:rg_name:resource_guid", OCI: "ocid1.vcn.oc1.iad.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq".
VpcId pulumi.StringPtrInput
// Region of cloud provider. Example: AWS: "us-east-1", GCP: "us-west2-a", Azure: "East US 2", OCI: "us-ashburn-1", AzureGov: "USGov Arizona", AWSGov: "us-gov-west-1, AWSChina: "cn-north-1", AzureChina: "China North", AWS Top Secret: "us-iso-east-1", AWS Secret: "us-isob-east-1".
VpcReg pulumi.StringPtrInput
// Availability Zone. Only available for cloudType = 8 (Azure). Must be in the form 'az-n', for example, 'az-2'. Available in provider version R2.17+.
Zone pulumi.StringPtrInput
}
func (AviatrixSpokeGatewayState) ElementType() reflect.Type {
return reflect.TypeOf((*aviatrixSpokeGatewayState)(nil)).Elem()
}
type aviatrixSpokeGatewayArgs struct {
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
AccountName string `pulumi:"accountName"`
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
AllocateNewEip *bool `pulumi:"allocateNewEip"`
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
ApprovedLearnedCidrs []string `pulumi:"approvedLearnedCidrs"`
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
AvailabilityDomain *string `pulumi:"availabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
AzureEipNameResourceGroup *string `pulumi:"azureEipNameResourceGroup"`
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
BgpEcmp *bool `pulumi:"bgpEcmp"`
// BGP hold time. Unit is in seconds. Valid values are between 12 and 360. Default value: 180.
BgpHoldTime *int `pulumi:"bgpHoldTime"`
// BGP route polling time. Unit is in seconds. Valid values are between 10 and 50. Default value: "50".
BgpPollingTime *int `pulumi:"bgpPollingTime"`
// Type of cloud service provider, requires an integer value. Currently, only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192), AWS Top Secret(16384) and AWS Secret (32768) are supported.
CloudType int `pulumi:"cloudType"`
// Customer managed key ID.
CustomerManagedKeys *string `pulumi:"customerManagedKeys"`
// A list of comma separated CIDRs to be customized for the spoke VPC routes. When configured, it will replace all learned routes in VPC routing tables, including RFC1918 and non-RFC1918 CIDRs. It applies to this spoke gateway only. Example: "10.0.0.0/116,10.2.0.0/16".
CustomizedSpokeVpcRoutes *string `pulumi:"customizedSpokeVpcRoutes"`
// Disables route propagation on BGP Spoke to attached Transit Gateway. Default value: false.
DisableRoutePropagation *bool `pulumi:"disableRoutePropagation"`
// Required when `allocateNewEip` is false. It uses the specified EIP for this gateway. Available in Controller 4.7+. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
Eip *string `pulumi:"eip"`
// Enables [Active-Standby Mode](https://docs.aviatrix.com/HowTos/transit_advanced.html#active-standby). Available only with HA enabled. Valid values: true, false. Default value: false.
EnableActiveStandby *bool `pulumi:"enableActiveStandby"`
// Enables Preemptive Mode for Active-Standby. Available only with BGP enabled, HA enabled and Active-Standby enabled. Valid values: true, false. Default value: false.
EnableActiveStandbyPreemptive *bool `pulumi:"enableActiveStandbyPreemptive"`
// Auto Advertise Spoke Site2Cloud CIDRs. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableAutoAdvertiseS2cCidrs *bool `pulumi:"enableAutoAdvertiseS2cCidrs"`
// Enable BGP for this spoke gateway. Only available for AWS and Azure. Valid values: true, false. Default value: false. Available in provider R2.21.0+.
EnableBgp *bool `pulumi:"enableBgp"`
// Enable EBS volume encryption for Gateway. Only supports AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret providers. Valid values: true, false. Default value: false.
EnableEncryptVolume *bool `pulumi:"enableEncryptVolume"`
// Enable jumbo frames for this spoke gateway. Default value is true.
EnableJumboFrame *bool `pulumi:"enableJumboFrame"`
// Switch to enable/disable learned CIDR approval for BGP Spoke Gateway. Valid values: true, false. Default value: false.
EnableLearnedCidrsApproval *bool `pulumi:"enableLearnedCidrsApproval"`
// If set to true, the [Monitor Gateway Subnets](https://docs.aviatrix.com/HowTos/gateway.html#monitor-gateway-subnet) feature is enabled. Default value is false. Available in provider version R2.18+.
EnableMonitorGatewaySubnets *bool `pulumi:"enableMonitorGatewaySubnets"`
// Enable preserve asPath when advertising manual summary cidrs on BGP spoke gateway. Valid values: true, false. Default value: false. Available as of provider version R.2.22.1+
EnablePreserveAsPath *bool `pulumi:"enablePreserveAsPath"`
// Enable Private OOB feature. Only available for AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
EnablePrivateOob *bool `pulumi:"enablePrivateOob"`
// Program default route in VPC private route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnablePrivateVpcDefaultRoute *bool `pulumi:"enablePrivateVpcDefaultRoute"`
// Skip programming VPC public route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableSkipPublicRouteTableUpdate *bool `pulumi:"enableSkipPublicRouteTableUpdate"`
// Enable spot instance. NOT supported for production deployment.
EnableSpotInstance *bool `pulumi:"enableSpotInstance"`
// Enable VPC DNS Server for Gateway. Currently only supported for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, Alibaba Cloud, AWS Top Secret and AWS Secret gateways. Valid values: true, false. Default value: false.
EnableVpcDnsServer *bool `pulumi:"enableVpcDnsServer"`
// Fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
FaultDomain *string `pulumi:"faultDomain"`
// A list of comma separated CIDRs to be filtered from the spoke VPC route table. When configured, filtering CIDR(s) or it’s subnet will be deleted from VPC routing tables as well as from spoke gateway’s routing table. It applies to this spoke gateway only. Example: "10.2.0.0/116,10.3.0.0/16".
FilteredSpokeVpcRoutes *string `pulumi:"filteredSpokeVpcRoutes"`
// Name of the gateway which is going to be created.
GwName string `pulumi:"gwName"`
// Size of the gateway instance. Example: AWS/AWSGov/AWSChina: "t2.large", Azure/AzureGov/AzureChina: "Standard_B1s", OCI: "VM.Standard2.2", GCP: "n1-standard-1".
GwSize string `pulumi:"gwSize"`
// HA gateway availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaAvailabilityDomain *string `pulumi:"haAvailabilityDomain"`
// Name of public IP Address resource and its resource group in Azure to be assigned to the HA Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `haEip` is set and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
HaAzureEipNameResourceGroup *string `pulumi:"haAzureEipNameResourceGroup"`
// Public IP address that you want to assign to the HA peering instance. If no value is given, a new EIP will automatically be allocated. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
HaEip *string `pulumi:"haEip"`
// HA gateway fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaFaultDomain *string `pulumi:"haFaultDomain"`
// HA Gateway Size. Mandatory if enabling HA.
HaGwSize *string `pulumi:"haGwSize"`
// The image version of the HA gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `haSoftwareVersion`. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
HaImageVersion *string `pulumi:"haImageVersion"`
// AZ of subnet being created for Insane Mode Spoke HA Gateway. Required for AWS, AzureGov, AWSGov, AWS Top Secret and AWS Secret if `insaneMode` is enabled and `haSubnet` is set. Example: AWS: "us-west-1a".
HaInsaneModeAz *string `pulumi:"haInsaneModeAz"`
// HA OOB availability zone. Required if enabling Private OOB and HA. Example: "us-west-1b".
HaOobAvailabilityZone *string `pulumi:"haOobAvailabilityZone"`
// HA OOB management subnet. Required if enabling Private OOB and HA. Example: "11.0.0.48/28".
HaOobManagementSubnet *string `pulumi:"haOobManagementSubnet"`
// Availability Zone of the HA subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov with HA. Available in Provider version R2.23+.
HaPrivateModeSubnetZone *string `pulumi:"haPrivateModeSubnetZone"`
// The software version of the HA gateway. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the HA gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
HaSoftwareVersion *string `pulumi:"haSoftwareVersion"`
// HA Subnet. Required if enabling HA for AWS, AWSGov, AWSChina, Azure, AzureGov, AzureChina, OCI, Alibaba Cloud, AWS Top Secret or AWS Secret gateways. Optional for GCP. Setting to empty/unsetting will disable HA. Setting to a valid subnet CIDR will create an HA gateway on the subnet. Example: "10.12.0.0/24"
HaSubnet *string `pulumi:"haSubnet"`
// HA Zone. Required if enabling HA for GCP gateway. Optional for Azure. For GCP, setting to empty/unsetting will disable HA and setting to a valid zone will create an HA gateway in the zone. Example: "us-west1-c". For Azure, this is an optional parameter to place the HA gateway in a specific availability zone. Valid values for Azure gateways are in the form "az-n". Example: "az-2". Available for Azure as of provider version R2.17+.
HaZone *string `pulumi:"haZone"`
// The image version of the gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `softwareVersion`. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
ImageVersion *string `pulumi:"imageVersion"`
// A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. When configured, it will replace all advertised routes from this VPC. Example: "10.4.0.0/116,10.5.0.0/16".
IncludedAdvertisedSpokeRoutes *string `pulumi:"includedAdvertisedSpokeRoutes"`
// Enable [Insane Mode](https://docs.aviatrix.com/HowTos/insane_mode.html) for Spoke Gateway. Insane Mode gateway size must be at least c5 size (AWS, AWSGov, AWS China, AWS Top Secret and AWS Secret) or Standard_D3_v2 (Azure and AzureGov); for GCP only four size are supported: "n1-highcpu-4", "n1-highcpu-8", "n1-highcpu-16" and "n1-highcpu-32". If enabled, you must specify a valid /26 CIDR segment of the VPC to create a new subnet for AWS, Azure, AzureGov, AWSGov, AWS Top Secret and AWS Secret. Only available for AWS, GCP/OCI, Azure, AzureGov, AzureChina, AWSGov, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
InsaneMode *bool `pulumi:"insaneMode"`
// AZ of subnet being created for Insane Mode Spoke Gateway. Required for AWS, AWSGov, AWS China, AWS Top Secret or AWS Secret if `insaneMode` is enabled. Example: AWS: "us-west-1a".
InsaneModeAz *string `pulumi:"insaneModeAz"`
// Learned CIDRs approval mode. Either "gateway" (approval on a per-gateway basis) or "connection" (approval on a per-connection basis). Only "gateway" is supported for BGP SPOKE Gateway. Default value: "gateway". Available as of provider version R2.21+.
LearnedCidrsApprovalMode *string `pulumi:"learnedCidrsApprovalMode"`
// Changes the Aviatrix Spoke Gateway ASN number before you setup Aviatrix Spoke Gateway connection configurations.
LocalAsNumber *string `pulumi:"localAsNumber"`
// Enable to manage spoke-to-Aviatrix transit gateway attachments using the **aviatrix_spoke_gateway** resource with the below `transitGw` attribute. If this is set to false, attaching this spoke to transit gateways must be done using the **aviatrix_spoke_transit_attachment** resource. Valid values: true, false. Default value: true. Available in provider R2.17+.
ManageTransitGatewayAttachment *bool `pulumi:"manageTransitGatewayAttachment"`
// Set of monitored instance ids. Only valid when 'enable_monitor_gateway_subnets' = true. Available in provider version R2.18+.
MonitorExcludeLists []string `pulumi:"monitorExcludeLists"`
// OOB availability zone. Required if enabling Private OOB. Example: "us-west-1a".
OobAvailabilityZone *string `pulumi:"oobAvailabilityZone"`
// OOB management subnet. Required if enabling Private OOB. Example: "11.0.2.0/24".
OobManagementSubnet *string `pulumi:"oobManagementSubnet"`
// List of AS numbers to populate BGP AS_PATH field when it advertises to VGW or peer devices.
PrependAsPaths []string `pulumi:"prependAsPaths"`
// VPC ID of Private Mode load balancer. Required when Private Mode is enabled on the Controller. Available in provider version R2.23+.
PrivateModeLbVpcId *string `pulumi:"privateModeLbVpcId"`
// Availability Zone of the subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov. Available in Provider version R2.23+.
PrivateModeSubnetZone *string `pulumi:"privateModeSubnetZone"`
// Gateway ethernet interface RX queue size. Once set, can't be deleted or disabled. Available for AWS as of provider version R2.22+.
RxQueueSize *string `pulumi:"rxQueueSize"`
// Set to true if this [feature](https://docs.aviatrix.com/Solutions/gateway_ha.html#single-az-gateway) is desired. Valid values: true, false.
SingleAzHa *bool `pulumi:"singleAzHa"`
// Specify whether to enable Source NAT feature in "singleIp" mode on the gateway or not. Please disable AWS NAT instance before enabling this feature. Currently only supports AWS(1) and Azure(8). Valid values: true, false.
SingleIpSnat *bool `pulumi:"singleIpSnat"`
// The software version of the gateway. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
SoftwareVersion *string `pulumi:"softwareVersion"`
// Intended CIDR list to be advertised to external BGP router. Empty list is not valid. Example: ["10.2.0.0/16", "10.4.0.0/16"].
SpokeBgpManualAdvertiseCidrs []string `pulumi:"spokeBgpManualAdvertiseCidrs"`
// Price for spot instance. NOT supported for production deployment.
SpotPrice *string `pulumi:"spotPrice"`
// A VPC Network address range selected from one of the available network ranges. Example: "172.31.0.0/20". **NOTE: If using `insaneMode`, please see notes here.**
Subnet string `pulumi:"subnet"`
// (Optional) Instance tag of cloud provider. Only supported for AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina. Example: ["key1:value1", "key2:value2"].
//
// Deprecated: Use tags instead.
TagLists []string `pulumi:"tagLists"`
// Map of tags to assign to the gateway. Only available for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret gateways. Allowed characters vary by cloud type but always include: letters, spaces, and numbers. AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret allow the use of any character. Azure, AzureGov and AzureChina allows the following special characters: + - = . _ : @. Example: {"key1" = "value1", "key2" = "value2"}.
Tags map[string]string `pulumi:"tags"`
// Specify the Aviatrix transit gateways to attach this spoke gateway to. Format is a comma separated list of transit gateway names. For example: "transit-gw1,transit-gw2".
//
// Deprecated: Please set `manage_transit_gateway_attachment` to false, and use the standalone aviatrix_spoke_transit_attachment resource instead.
TransitGw *string `pulumi:"transitGw"`
// The IPSec tunnel down detection time for the Spoke Gateway.
TunnelDetectionTime *int `pulumi:"tunnelDetectionTime"`
// VPC-ID/VNet-Name of cloud provider. Example: AWS/AWSGov/AWSChina: "vpc-abcd1234", GCP: "vpc-gcp-test~-~project-id", Azure/AzureGov/AzureChina: "vnet_name:rg_name:resource_guid", OCI: "ocid1.vcn.oc1.iad.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq".
VpcId string `pulumi:"vpcId"`
// Region of cloud provider. Example: AWS: "us-east-1", GCP: "us-west2-a", Azure: "East US 2", OCI: "us-ashburn-1", AzureGov: "USGov Arizona", AWSGov: "us-gov-west-1, AWSChina: "cn-north-1", AzureChina: "China North", AWS Top Secret: "us-iso-east-1", AWS Secret: "us-isob-east-1".
VpcReg string `pulumi:"vpcReg"`
// Availability Zone. Only available for cloudType = 8 (Azure). Must be in the form 'az-n', for example, 'az-2'. Available in provider version R2.17+.
Zone *string `pulumi:"zone"`
}
// The set of arguments for constructing a AviatrixSpokeGateway resource.
type AviatrixSpokeGatewayArgs struct {
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
AccountName pulumi.StringInput
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
AllocateNewEip pulumi.BoolPtrInput
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
ApprovedLearnedCidrs pulumi.StringArrayInput
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
AvailabilityDomain pulumi.StringPtrInput
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
AzureEipNameResourceGroup pulumi.StringPtrInput
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
BgpEcmp pulumi.BoolPtrInput
// BGP hold time. Unit is in seconds. Valid values are between 12 and 360. Default value: 180.
BgpHoldTime pulumi.IntPtrInput
// BGP route polling time. Unit is in seconds. Valid values are between 10 and 50. Default value: "50".
BgpPollingTime pulumi.IntPtrInput
// Type of cloud service provider, requires an integer value. Currently, only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192), AWS Top Secret(16384) and AWS Secret (32768) are supported.
CloudType pulumi.IntInput
// Customer managed key ID.
CustomerManagedKeys pulumi.StringPtrInput
// A list of comma separated CIDRs to be customized for the spoke VPC routes. When configured, it will replace all learned routes in VPC routing tables, including RFC1918 and non-RFC1918 CIDRs. It applies to this spoke gateway only. Example: "10.0.0.0/116,10.2.0.0/16".
CustomizedSpokeVpcRoutes pulumi.StringPtrInput
// Disables route propagation on BGP Spoke to attached Transit Gateway. Default value: false.
DisableRoutePropagation pulumi.BoolPtrInput
// Required when `allocateNewEip` is false. It uses the specified EIP for this gateway. Available in Controller 4.7+. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
Eip pulumi.StringPtrInput
// Enables [Active-Standby Mode](https://docs.aviatrix.com/HowTos/transit_advanced.html#active-standby). Available only with HA enabled. Valid values: true, false. Default value: false.
EnableActiveStandby pulumi.BoolPtrInput
// Enables Preemptive Mode for Active-Standby. Available only with BGP enabled, HA enabled and Active-Standby enabled. Valid values: true, false. Default value: false.
EnableActiveStandbyPreemptive pulumi.BoolPtrInput
// Auto Advertise Spoke Site2Cloud CIDRs. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableAutoAdvertiseS2cCidrs pulumi.BoolPtrInput
// Enable BGP for this spoke gateway. Only available for AWS and Azure. Valid values: true, false. Default value: false. Available in provider R2.21.0+.
EnableBgp pulumi.BoolPtrInput
// Enable EBS volume encryption for Gateway. Only supports AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret providers. Valid values: true, false. Default value: false.
EnableEncryptVolume pulumi.BoolPtrInput
// Enable jumbo frames for this spoke gateway. Default value is true.
EnableJumboFrame pulumi.BoolPtrInput
// Switch to enable/disable learned CIDR approval for BGP Spoke Gateway. Valid values: true, false. Default value: false.
EnableLearnedCidrsApproval pulumi.BoolPtrInput
// If set to true, the [Monitor Gateway Subnets](https://docs.aviatrix.com/HowTos/gateway.html#monitor-gateway-subnet) feature is enabled. Default value is false. Available in provider version R2.18+.
EnableMonitorGatewaySubnets pulumi.BoolPtrInput
// Enable preserve asPath when advertising manual summary cidrs on BGP spoke gateway. Valid values: true, false. Default value: false. Available as of provider version R.2.22.1+
EnablePreserveAsPath pulumi.BoolPtrInput
// Enable Private OOB feature. Only available for AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
EnablePrivateOob pulumi.BoolPtrInput
// Program default route in VPC private route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnablePrivateVpcDefaultRoute pulumi.BoolPtrInput
// Skip programming VPC public route table. Default: false. Valid values: true or false. Available as of provider version R2.19+.
EnableSkipPublicRouteTableUpdate pulumi.BoolPtrInput
// Enable spot instance. NOT supported for production deployment.
EnableSpotInstance pulumi.BoolPtrInput
// Enable VPC DNS Server for Gateway. Currently only supported for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, Alibaba Cloud, AWS Top Secret and AWS Secret gateways. Valid values: true, false. Default value: false.
EnableVpcDnsServer pulumi.BoolPtrInput
// Fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
FaultDomain pulumi.StringPtrInput
// A list of comma separated CIDRs to be filtered from the spoke VPC route table. When configured, filtering CIDR(s) or it’s subnet will be deleted from VPC routing tables as well as from spoke gateway’s routing table. It applies to this spoke gateway only. Example: "10.2.0.0/116,10.3.0.0/16".
FilteredSpokeVpcRoutes pulumi.StringPtrInput
// Name of the gateway which is going to be created.
GwName pulumi.StringInput
// Size of the gateway instance. Example: AWS/AWSGov/AWSChina: "t2.large", Azure/AzureGov/AzureChina: "Standard_B1s", OCI: "VM.Standard2.2", GCP: "n1-standard-1".
GwSize pulumi.StringInput
// HA gateway availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaAvailabilityDomain pulumi.StringPtrInput
// Name of public IP Address resource and its resource group in Azure to be assigned to the HA Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `haEip` is set and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
HaAzureEipNameResourceGroup pulumi.StringPtrInput
// Public IP address that you want to assign to the HA peering instance. If no value is given, a new EIP will automatically be allocated. Only available for AWS, GCP, Azure, OCI, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret.
HaEip pulumi.StringPtrInput
// HA gateway fault domain. Required and valid only for OCI. Available as of provider version R2.19.3.
HaFaultDomain pulumi.StringPtrInput
// HA Gateway Size. Mandatory if enabling HA.
HaGwSize pulumi.StringPtrInput
// The image version of the HA gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `haSoftwareVersion`. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
HaImageVersion pulumi.StringPtrInput
// AZ of subnet being created for Insane Mode Spoke HA Gateway. Required for AWS, AzureGov, AWSGov, AWS Top Secret and AWS Secret if `insaneMode` is enabled and `haSubnet` is set. Example: AWS: "us-west-1a".
HaInsaneModeAz pulumi.StringPtrInput
// HA OOB availability zone. Required if enabling Private OOB and HA. Example: "us-west-1b".
HaOobAvailabilityZone pulumi.StringPtrInput
// HA OOB management subnet. Required if enabling Private OOB and HA. Example: "11.0.0.48/28".
HaOobManagementSubnet pulumi.StringPtrInput
// Availability Zone of the HA subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov with HA. Available in Provider version R2.23+.
HaPrivateModeSubnetZone pulumi.StringPtrInput
// The software version of the HA gateway. If set, we will attempt to update the HA gateway to the specified version if current version is different. If left blank, the HA gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
HaSoftwareVersion pulumi.StringPtrInput
// HA Subnet. Required if enabling HA for AWS, AWSGov, AWSChina, Azure, AzureGov, AzureChina, OCI, Alibaba Cloud, AWS Top Secret or AWS Secret gateways. Optional for GCP. Setting to empty/unsetting will disable HA. Setting to a valid subnet CIDR will create an HA gateway on the subnet. Example: "10.12.0.0/24"
HaSubnet pulumi.StringPtrInput
// HA Zone. Required if enabling HA for GCP gateway. Optional for Azure. For GCP, setting to empty/unsetting will disable HA and setting to a valid zone will create an HA gateway in the zone. Example: "us-west1-c". For Azure, this is an optional parameter to place the HA gateway in a specific availability zone. Valid values for Azure gateways are in the form "az-n". Example: "az-2". Available for Azure as of provider version R2.17+.
HaZone pulumi.StringPtrInput
// The image version of the gateway. Use `getAviatrixGatewayImage` data source to programmatically retrieve this value for the desired `softwareVersion`. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrades can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "hvm-cloudx-aws-022021". Available as of provider version R2.20.0.
ImageVersion pulumi.StringPtrInput
// A list of comma separated CIDRs to be advertised to on-prem as 'Included CIDR List'. When configured, it will replace all advertised routes from this VPC. Example: "10.4.0.0/116,10.5.0.0/16".
IncludedAdvertisedSpokeRoutes pulumi.StringPtrInput
// Enable [Insane Mode](https://docs.aviatrix.com/HowTos/insane_mode.html) for Spoke Gateway. Insane Mode gateway size must be at least c5 size (AWS, AWSGov, AWS China, AWS Top Secret and AWS Secret) or Standard_D3_v2 (Azure and AzureGov); for GCP only four size are supported: "n1-highcpu-4", "n1-highcpu-8", "n1-highcpu-16" and "n1-highcpu-32". If enabled, you must specify a valid /26 CIDR segment of the VPC to create a new subnet for AWS, Azure, AzureGov, AWSGov, AWS Top Secret and AWS Secret. Only available for AWS, GCP/OCI, Azure, AzureGov, AzureChina, AWSGov, AWS Top Secret and AWS Secret. Valid values: true, false. Default value: false.
InsaneMode pulumi.BoolPtrInput
// AZ of subnet being created for Insane Mode Spoke Gateway. Required for AWS, AWSGov, AWS China, AWS Top Secret or AWS Secret if `insaneMode` is enabled. Example: AWS: "us-west-1a".
InsaneModeAz pulumi.StringPtrInput
// Learned CIDRs approval mode. Either "gateway" (approval on a per-gateway basis) or "connection" (approval on a per-connection basis). Only "gateway" is supported for BGP SPOKE Gateway. Default value: "gateway". Available as of provider version R2.21+.
LearnedCidrsApprovalMode pulumi.StringPtrInput
// Changes the Aviatrix Spoke Gateway ASN number before you setup Aviatrix Spoke Gateway connection configurations.
LocalAsNumber pulumi.StringPtrInput
// Enable to manage spoke-to-Aviatrix transit gateway attachments using the **aviatrix_spoke_gateway** resource with the below `transitGw` attribute. If this is set to false, attaching this spoke to transit gateways must be done using the **aviatrix_spoke_transit_attachment** resource. Valid values: true, false. Default value: true. Available in provider R2.17+.
ManageTransitGatewayAttachment pulumi.BoolPtrInput
// Set of monitored instance ids. Only valid when 'enable_monitor_gateway_subnets' = true. Available in provider version R2.18+.
MonitorExcludeLists pulumi.StringArrayInput
// OOB availability zone. Required if enabling Private OOB. Example: "us-west-1a".
OobAvailabilityZone pulumi.StringPtrInput
// OOB management subnet. Required if enabling Private OOB. Example: "11.0.2.0/24".
OobManagementSubnet pulumi.StringPtrInput
// List of AS numbers to populate BGP AS_PATH field when it advertises to VGW or peer devices.
PrependAsPaths pulumi.StringArrayInput
// VPC ID of Private Mode load balancer. Required when Private Mode is enabled on the Controller. Available in provider version R2.23+.
PrivateModeLbVpcId pulumi.StringPtrInput
// Availability Zone of the subnet. Required when Private Mode is enabled on the Controller and `cloudType` is AWS or AWSGov. Available in Provider version R2.23+.
PrivateModeSubnetZone pulumi.StringPtrInput
// Gateway ethernet interface RX queue size. Once set, can't be deleted or disabled. Available for AWS as of provider version R2.22+.
RxQueueSize pulumi.StringPtrInput
// Set to true if this [feature](https://docs.aviatrix.com/Solutions/gateway_ha.html#single-az-gateway) is desired. Valid values: true, false.
SingleAzHa pulumi.BoolPtrInput
// Specify whether to enable Source NAT feature in "singleIp" mode on the gateway or not. Please disable AWS NAT instance before enabling this feature. Currently only supports AWS(1) and Azure(8). Valid values: true, false.
SingleIpSnat pulumi.BoolPtrInput
// The software version of the gateway. If set, we will attempt to update the gateway to the specified version if current version is different. If left blank, the gateway upgrade can be managed with the `AviatrixControllerConfig` resource. Type: String. Example: "6.5.821". Available as of provider version R2.20.0.
SoftwareVersion pulumi.StringPtrInput
// Intended CIDR list to be advertised to external BGP router. Empty list is not valid. Example: ["10.2.0.0/16", "10.4.0.0/16"].
SpokeBgpManualAdvertiseCidrs pulumi.StringArrayInput
// Price for spot instance. NOT supported for production deployment.
SpotPrice pulumi.StringPtrInput
// A VPC Network address range selected from one of the available network ranges. Example: "172.31.0.0/20". **NOTE: If using `insaneMode`, please see notes here.**
Subnet pulumi.StringInput
// (Optional) Instance tag of cloud provider. Only supported for AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina. Example: ["key1:value1", "key2:value2"].
//
// Deprecated: Use tags instead.
TagLists pulumi.StringArrayInput
// Map of tags to assign to the gateway. Only available for AWS, Azure, AzureGov, AWSGov, AWSChina, AzureChina, AWS Top Secret and AWS Secret gateways. Allowed characters vary by cloud type but always include: letters, spaces, and numbers. AWS, AWSGov, AWSChina, AWS Top Secret and AWS Secret allow the use of any character. Azure, AzureGov and AzureChina allows the following special characters: + - = . _ : @. Example: {"key1" = "value1", "key2" = "value2"}.
Tags pulumi.StringMapInput
// Specify the Aviatrix transit gateways to attach this spoke gateway to. Format is a comma separated list of transit gateway names. For example: "transit-gw1,transit-gw2".
//
// Deprecated: Please set `manage_transit_gateway_attachment` to false, and use the standalone aviatrix_spoke_transit_attachment resource instead.
TransitGw pulumi.StringPtrInput
// The IPSec tunnel down detection time for the Spoke Gateway.
TunnelDetectionTime pulumi.IntPtrInput
// VPC-ID/VNet-Name of cloud provider. Example: AWS/AWSGov/AWSChina: "vpc-abcd1234", GCP: "vpc-gcp-test~-~project-id", Azure/AzureGov/AzureChina: "vnet_name:rg_name:resource_guid", OCI: "ocid1.vcn.oc1.iad.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq".
VpcId pulumi.StringInput
// Region of cloud provider. Example: AWS: "us-east-1", GCP: "us-west2-a", Azure: "East US 2", OCI: "us-ashburn-1", AzureGov: "USGov Arizona", AWSGov: "us-gov-west-1, AWSChina: "cn-north-1", AzureChina: "China North", AWS Top Secret: "us-iso-east-1", AWS Secret: "us-isob-east-1".
VpcReg pulumi.StringInput
// Availability Zone. Only available for cloudType = 8 (Azure). Must be in the form 'az-n', for example, 'az-2'. Available in provider version R2.17+.
Zone pulumi.StringPtrInput
}
func (AviatrixSpokeGatewayArgs) ElementType() reflect.Type {
return reflect.TypeOf((*aviatrixSpokeGatewayArgs)(nil)).Elem()
}
type AviatrixSpokeGatewayInput interface {
pulumi.Input
ToAviatrixSpokeGatewayOutput() AviatrixSpokeGatewayOutput
ToAviatrixSpokeGatewayOutputWithContext(ctx context.Context) AviatrixSpokeGatewayOutput
}
func (*AviatrixSpokeGateway) ElementType() reflect.Type {
return reflect.TypeOf((**AviatrixSpokeGateway)(nil)).Elem()
}
func (i *AviatrixSpokeGateway) ToAviatrixSpokeGatewayOutput() AviatrixSpokeGatewayOutput {
return i.ToAviatrixSpokeGatewayOutputWithContext(context.Background())
}
func (i *AviatrixSpokeGateway) ToAviatrixSpokeGatewayOutputWithContext(ctx context.Context) AviatrixSpokeGatewayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AviatrixSpokeGatewayOutput)
}
// AviatrixSpokeGatewayArrayInput is an input type that accepts AviatrixSpokeGatewayArray and AviatrixSpokeGatewayArrayOutput values.
// You can construct a concrete instance of `AviatrixSpokeGatewayArrayInput` via:
//
// AviatrixSpokeGatewayArray{ AviatrixSpokeGatewayArgs{...} }
type AviatrixSpokeGatewayArrayInput interface {
pulumi.Input
ToAviatrixSpokeGatewayArrayOutput() AviatrixSpokeGatewayArrayOutput
ToAviatrixSpokeGatewayArrayOutputWithContext(context.Context) AviatrixSpokeGatewayArrayOutput
}
type AviatrixSpokeGatewayArray []AviatrixSpokeGatewayInput
func (AviatrixSpokeGatewayArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AviatrixSpokeGateway)(nil)).Elem()
}
func (i AviatrixSpokeGatewayArray) ToAviatrixSpokeGatewayArrayOutput() AviatrixSpokeGatewayArrayOutput {
return i.ToAviatrixSpokeGatewayArrayOutputWithContext(context.Background())
}
func (i AviatrixSpokeGatewayArray) ToAviatrixSpokeGatewayArrayOutputWithContext(ctx context.Context) AviatrixSpokeGatewayArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AviatrixSpokeGatewayArrayOutput)
}
// AviatrixSpokeGatewayMapInput is an input type that accepts AviatrixSpokeGatewayMap and AviatrixSpokeGatewayMapOutput values.
// You can construct a concrete instance of `AviatrixSpokeGatewayMapInput` via:
//
// AviatrixSpokeGatewayMap{ "key": AviatrixSpokeGatewayArgs{...} }
type AviatrixSpokeGatewayMapInput interface {
pulumi.Input
ToAviatrixSpokeGatewayMapOutput() AviatrixSpokeGatewayMapOutput
ToAviatrixSpokeGatewayMapOutputWithContext(context.Context) AviatrixSpokeGatewayMapOutput
}
type AviatrixSpokeGatewayMap map[string]AviatrixSpokeGatewayInput
func (AviatrixSpokeGatewayMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AviatrixSpokeGateway)(nil)).Elem()
}
func (i AviatrixSpokeGatewayMap) ToAviatrixSpokeGatewayMapOutput() AviatrixSpokeGatewayMapOutput {
return i.ToAviatrixSpokeGatewayMapOutputWithContext(context.Background())
}
func (i AviatrixSpokeGatewayMap) ToAviatrixSpokeGatewayMapOutputWithContext(ctx context.Context) AviatrixSpokeGatewayMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AviatrixSpokeGatewayMapOutput)
}
type AviatrixSpokeGatewayOutput struct{ *pulumi.OutputState }
func (AviatrixSpokeGatewayOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AviatrixSpokeGateway)(nil)).Elem()
}
func (o AviatrixSpokeGatewayOutput) ToAviatrixSpokeGatewayOutput() AviatrixSpokeGatewayOutput {
return o
}
func (o AviatrixSpokeGatewayOutput) ToAviatrixSpokeGatewayOutputWithContext(ctx context.Context) AviatrixSpokeGatewayOutput {
return o
}
// This parameter represents the name of a Cloud-Account in Aviatrix controller.
func (o AviatrixSpokeGatewayOutput) AccountName() pulumi.StringOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput)
}
// When value is false, reuse an idle address in Elastic IP pool for this gateway. Otherwise, allocate a new Elastic IP and use it for this gateway. Available in Controller 4.7+. Valid values: true, false. Default: true.
func (o AviatrixSpokeGatewayOutput) AllocateNewEip() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.BoolPtrOutput { return v.AllocateNewEip }).(pulumi.BoolPtrOutput)
}
// A set of approved learned CIDRs. Only valid when `enableLearnedCidrsApproval` is set to true. Example: ["10.250.0.0/16", "10.251.0.0/16"]. Available as of provider version R2.21+.
func (o AviatrixSpokeGatewayOutput) ApprovedLearnedCidrs() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.StringArrayOutput { return v.ApprovedLearnedCidrs }).(pulumi.StringArrayOutput)
}
// Availability domain. Required and valid only for OCI. Available as of provider version R2.19.3.
func (o AviatrixSpokeGatewayOutput) AvailabilityDomain() pulumi.StringOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.StringOutput { return v.AvailabilityDomain }).(pulumi.StringOutput)
}
// Name of public IP Address resource and its resource group in Azure to be assigned to the Spoke Gateway instance. Example: "IP_Name:Resource_Group_Name". Required if `allocateNewEip` is false and `cloudType` is Azure, AzureGov or AzureChina. Available as of provider version 2.20+.
func (o AviatrixSpokeGatewayOutput) AzureEipNameResourceGroup() pulumi.StringOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.StringOutput { return v.AzureEipNameResourceGroup }).(pulumi.StringOutput)
}
// Enable Equal Cost Multi Path (ECMP) routing for the next hop. Default value: false.
func (o AviatrixSpokeGatewayOutput) BgpEcmp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *AviatrixSpokeGateway) pulumi.BoolPtrOutput { return v.BgpEcmp }).(pulumi.BoolPtrOutput)