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

Fix Terraform boolean interpretation #1542

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Fix Terraform boolean interpretation #1542

merged 1 commit into from
Nov 18, 2022

Conversation

amarthadan
Copy link
Contributor

Fix #1530

It looks like Terraform doesn't like boolean comparisons (bool_var == false vs !bool_var) and may also interpret variables from the command line as strings without type being specified. I did change both and it looks like it works correctly now.

Tested only AWS, leaving GCP to @martinkolenic.

@amarthadan amarthadan self-assigned this Nov 17, 2022
Copy link
Contributor

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM.

Also made a quick AWS HTTP gateway RRP request (works fine).

@@ -71,8 +71,8 @@ module "startCoordinator" {
airnode_bucket = var.airnode_bucket
deployment_bucket_dir = var.deployment_bucket_dir
environment_variables = {
HTTP_GATEWAY_URL = var.http_gateway_enabled == false ? null : "https://${module.httpGw[0].api_url}/${random_uuid.http_path_key.result}"
HTTP_SIGNED_DATA_GATEWAY_URL = var.http_signed_data_gateway_enabled == false ? null : "https://${module.httpSignedGw[0].api_url}${random_uuid.http_signed_data_path_key.result}"
HTTP_GATEWAY_URL = var.http_gateway_enabled ? "https://${module.httpGw[0].api_url}/${random_uuid.http_path_key.result}" : null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering why it was working back in https://github.com/api3dao/airnode/pull/1418/files#diff-296ebb005304c61b91c2f50aa9a9c697158399ee17503b6a7a6374ebab553a4aR40 (I've also checked by deploying using docker image from that commit).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure tbh 🤷‍♂️

@amarthadan amarthadan merged commit 81a8a72 into master Nov 18, 2022
@amarthadan amarthadan deleted the terraform-bool-fix branch November 18, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployer broken after v0.10.0 merge fix attempt
2 participants