Skip to content

Conversation

@chusopr
Copy link
Contributor

@chusopr chusopr commented Nov 4, 2022

If infra.gcp.vpc.subnet_id is set, it will use that specified subnet for deploying the environment. Otherwise, it will use the first subnet found as has been the case so far.

Note that this property is under infra.gpc.vpc while other properties like the VPC name are under infra.vpc.
I think that's confusing but it put it under infra.gcp.vpc for consistency with similar properties for other cloud providers (e.g., infra.aws.vpc.existing.public_subnet_ids) and anyway, VPC properties seem to already be split between both places (e.g., infra.aws.vpc.nat_gateway.name, infra.aws.vpc.private_endpoints, etc. vs. infra.vpc.private_subnets, infra.vpc.enable_ssh, etc.).

I tested it by deploying GPC environments where I either specifically provided a subnet name that was different than the first one or didn't provide the subnet name to let it choose the first one and in both cases the result was the expected one.

@wmudge wmudge requested a review from a team November 15, 2022 18:50
@wmudge wmudge added the enhancement MINOR - New feature or enhancement in the CHANGELOG label Nov 15, 2022
@Chaffelson Chaffelson merged commit fa7cbe7 into cloudera-labs:devel Nov 18, 2022
wmudge pushed a commit to wmudge/cloudera.exe that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement MINOR - New feature or enhancement in the CHANGELOG

Development

Successfully merging this pull request may close these issues.

3 participants