Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to choosing the GCP subnet to deploy to. #132

Merged
merged 1 commit into from
Nov 18, 2022

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 New feature or request label Nov 15, 2022
@Chaffelson Chaffelson merged commit fa7cbe7 into cloudera-labs:devel Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants