Skip to content

Commit

Permalink
Merge pull request #22 from morenod/aws_region_hypershift
Browse files Browse the repository at this point in the history
Add --region parameter to rosa create command, without it, it cannot find the vpc subnets
  • Loading branch information
morenod authored Nov 24, 2023
2 parents 275eedf + dae44ee commit cc8f2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/platforms/rosa/hypershift/hypershift.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def create_cluster(self, platform, cluster_name):
os.mkdir(cluster_info["path"])
self.logging.debug("Attempting cluster installation")
self.logging.debug("Output directory set to %s" % cluster_info["path"])
cluster_cmd = ["rosa", "create", "cluster", "--cluster-name", cluster_name, "--replicas", str(cluster_info["workers"]), "--hosted-cp", "--sts", "--mode", "auto", "-y", "--output", "json", "--oidc-config-id", platform.environment["oidc_config_id"]]
cluster_cmd = ["rosa", "create", "cluster", "--cluster-name", cluster_name, "--replicas", str(cluster_info["workers"]), "--hosted-cp", "--sts", "--mode", "auto", "-y", "--output", "json", "--oidc-config-id", platform.environment["oidc_config_id"], "--region", platform.environment["aws"]["region"]]
if platform.environment["create_vpcs"]:
self.logging.debug(platform.environment["vpcs"][(cluster_info["index"] - 1) % len(platform.environment["vpcs"])])
cluster_info["vpc"] = platform.environment["vpcs"][(cluster_info["index"] - 1) % len(platform.environment["vpcs"])]
Expand Down

0 comments on commit cc8f2d6

Please sign in to comment.