You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(aws): add --vpc-id flag to deploy into existing VPCs
When --vpc-id is set, mapt reuses an existing VPC instead of creating
a new one. The flag is available on all standard AWS hosts (rhel,
windows, fedora, rhel-ai) and exposed as a param in all Tekton tasks.
Key behaviours:
- Spot AZ search is restricted to AZs that have subnets in the given VPC
- On-demand AZ selection is restricted to the VPC's subnet AZs
- Airgap is rejected when --vpc-id is set (mutually exclusive)
- existingVPCNetwork() resolves a public subnet in the chosen AZ and
reads the VPC/subnet as pulumi read-only resources (ec2.GetVpc /
ec2.GetSubnet), so no new networking infrastructure is created
Also fix spot AZ resolution: GetSpotPlacementScores can return AZ IDs
for zones not visible to the account via the default DescribeAvailabilityZones
call. describeAvailabilityZonesByRegions now uses AllAvailabilityZones: true
so all AZ IDs can be resolved to names during spot search, preventing
spurious "skipping AZ: az id not found" drops that led to no spot
option being found in accounts with SCP-restricted regions.
Closes#849
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: cmd/mapt/cmd/params/params.go
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,9 @@ const (
205
205
KindExtraPortMappingsDesc="Additional port mappings for the Kind cluster. Value should be a JSON array of objects with containerPort, hostPort, and protocol properties. Example: '[{\"containerPort\": 8080, \"hostPort\": 8080, \"protocol\": \"TCP\"}]'"
206
206
207
207
// Network
208
-
ServiceEndpoints="service-endpoints"
208
+
ServiceEndpoints="service-endpoints"
209
+
VpcID="vpc-id"
210
+
VpcIDDesc="ID of an existing VPC to deploy the instance into. When set, airgap is not supported and spot search is restricted to AZs with subnets in that VPC."
0 commit comments