Skip to content

Commit

Permalink
Add aws provider config to fix missing region error
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc committed May 5, 2022
1 parent 336e0f5 commit 5c0348a
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions qhub/stages/tf_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,27 @@ def stage_02_infrastructure(config):


def stage_03_kubernetes_initialize(config):
return {
"stages/03-kubernetes-initialize/_qhub.tf.json": tf_render_objects(
[
QHubTerraformState("03-kubernetes-initialize", config),
QHubKubernetesProvider(config),
QHubHelmProvider(config),
]
),
}
if config["provider"] == "aws":
return {
"stages/03-kubernetes-initialize/_qhub.tf.json": tf_render_objects(
[
QHubAWSProvider(config),
QHubTerraformState("03-kubernetes-initialize", config),
QHubKubernetesProvider(config),
QHubHelmProvider(config),
]
),
}
else:
return {
"stages/03-kubernetes-initialize/_qhub.tf.json": tf_render_objects(
[
QHubTerraformState("03-kubernetes-initialize", config),
QHubKubernetesProvider(config),
QHubHelmProvider(config),
]
),
}


def stage_04_kubernetes_ingress(config):
Expand Down

0 comments on commit 5c0348a

Please sign in to comment.