Skip to content

Commit

Permalink
update runtime.py request data
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Falourd <guillaume.falourd@zup.com.br>
  • Loading branch information
GuillaumeFalourd committed Sep 27, 2023
1 parent 9e3392b commit 9fcf6e4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
CLIENT_KEY = os.getenv("CLIENT_KEY")
CLIENT_REALM = os.getenv("CLIENT_REALM")
VERSION_TAG = os.getenv("VERSION_TAG")
CHECKOUT_BRANCH = os.getenv("CHECKOUT_BRANCH")
TF_STATE_BUCKET_NAME = os.getenv("TF_STATE_BUCKET_NAME")
TF_STATE_REGION = os.getenv("TF_STATE_REGION")
IAC_BUCKET_NAME = os.getenv("IAC_BUCKET_NAME")
Expand Down Expand Up @@ -52,22 +51,25 @@
request_data = {
"config": {
"tfstate": {
"bucket": TF_STATE_BUCKET_NAME,
"region": TF_STATE_REGION
},
"iac": {
"bucket": IAC_BUCKET_NAME,
"region": IAC_REGION
"bucket": TF_STATE_BUCKET_NAME,
"region": TF_STATE_REGION
}
# },
# "iac": {
# "bucket": IAC_BUCKET_NAME,
# "region": IAC_REGION
# }
},
"isApi": False, # FOR NOW
"apiContractPath": "./swagger.yaml", # FOR NOW
"envId": envId,
"workspaceId": wksId,
"versionTag": VERSION_TAG,
"manifesto": manifesto_json
}
}

print("Deploy request", request_data)

deploy_headers = {"Authorization": f"Bearer {access_token}"}

if manifestoType == 'application':
Expand Down

0 comments on commit 9fcf6e4

Please sign in to comment.