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 recepts for AWS after bad rebase #1531

Merged
merged 3 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/new-pants-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@api3/airnode-deployer': patch
---

Fix Terraform recepts for AWS after bad rebase
8 changes: 4 additions & 4 deletions packages/airnode-deployer/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "run" {

module "startCoordinatorNoGws" {
source = "./modules/function"
count = var.http_api_key == null && var.http_signed_data_api_key == null ? 1 : 0
count = var.http_gateway_enabled == false && var.http_signed_data_gateway_enabled == false ? 1 : 0

name = "${local.name_prefix}-startCoordinator"
handler = "index.startCoordinator"
Expand All @@ -50,7 +50,7 @@ module "startCoordinatorNoGws" {

module "startCoordinatorHttpGw" {
source = "./modules/function"
count = var.http_api_key != null && var.http_signed_data_api_key == null ? 1 : 0
count = var.http_gateway_enabled == true && var.http_signed_data_gateway_enabled == false ? 1 : 0

name = "${local.name_prefix}-startCoordinator"
handler = "index.startCoordinator"
Expand All @@ -74,7 +74,7 @@ module "startCoordinatorHttpGw" {

module "startCoordinatorHttpSignedGw" {
source = "./modules/function"
count = var.http_api_key == null && var.http_signed_data_api_key != null ? 1 : 0
count = var.http_gateway_enabled == false && var.http_signed_data_gateway_enabled == true ? 1 : 0

name = "${local.name_prefix}-startCoordinator"
handler = "index.startCoordinator"
Expand All @@ -98,7 +98,7 @@ module "startCoordinatorHttpSignedGw" {

module "startCoordinatorBothGws" {
source = "./modules/function"
count = var.http_api_key != null && var.http_signed_data_api_key != null ? 1 : 0
count = var.http_gateway_enabled == true && var.http_signed_data_gateway_enabled == true ? 1 : 0

name = "${local.name_prefix}-startCoordinator"
handler = "index.startCoordinator"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Before making the request, you need to replace the following placeholders:
The correct command may look like this:

```sh
curl -X POST -H 'Content-Type: application/json' -d '{"encodedParameters": "0x3173000000000000000000000000000000000000000000000000000000000000636f696e49640000000000000000000000000000000000000000000000000000626974636f696e00000000000000000000000000000000000000000000000000"}' 'https://am6ncplkx4.execute-api.us-east-1.amazonaws.com/v1/0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the coingecko-testable integration needs this too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

curl -X POST -H 'Content-Type: application/json' -d '{"encodedParameters": "0x3173000000000000000000000000000000000000000000000000000000000000636f696e49640000000000000000000000000000000000000000000000000000626974636f696e00000000000000000000000000000000000000000000000000"}' 'https://am6ncplkx4.execute-api.us-east-1.amazonaws.com/v1/d6ed7e8b-40fa-1392-3e4a-37e225ccda20/0xfb87102cdabadf905321521ba0b3cbf74ad09c5d400ac2eccdbef8d6143e78c4'
```

### When running Airnode locally
Expand Down