Yesterday I was puzzled on why my local deployment of Integration tests was working, while CI was not with some random errors just in few tests (with similar error as previous lack of permissions). It turns out, it was more lack of permissions, together with some bad configuration.
This extra permissions and configuration are actually a consequence of a different deployment approach per environment on w3up infra compared to old E-IPFS infra. Let's see the details:
w3up infra deployments:
prod => us-west-2
dev such as vasco => us-west-2
staging => us-east-2
pr such as pr369 => us-east-2
E-IPFS infra deployments:
prod => us-west-2
staging => us-west-2
Considering the above, when we would be in prod or dev, both infras would be deployed in same zone. However, for staging and PR deployments, there would be a gap. Two problems needed to be addressed to make this work:
Actually the content of this PR, we were assuming E-IPFS infra was in AWS_REGION ENV VAR, which is the region current code is deployed at. I changed this to infer the region based on the provided ARN for these resources.
Yesterday I was puzzled on why my local deployment of Integration tests was working, while CI was not with some random errors just in few tests (with similar error as previous lack of permissions). It turns out, it was more lack of permissions, together with some bad configuration.
This extra permissions and configuration are actually a consequence of a different deployment approach per environment on w3up infra compared to old E-IPFS infra. Let's see the details:
w3up infra deployments:
prod
=>us-west-2
dev
such asvasco
=>us-west-2
staging
=>us-east-2
pr
such aspr369
=>us-east-2
E-IPFS infra deployments:
prod
=>us-west-2
staging
=>us-west-2
Considering the above, when we would be in prod or dev, both infras would be deployed in same zone. However, for staging and PR deployments, there would be a gap. Two problems needed to be addressed to make this work:
AWS_REGION
ENV VAR, which is the region current code is deployed at. I changed this to infer the region based on the provided ARN for these resources.