'How do I handle multiple environments in AWS?
I prepared all my staging environment in aws and now I'm trying to setup production. I found that it's better to have 2 accounts in different availability zones as it's explained in this question: aws in production and development environments
So my staging account is in eu-central-1 and I want to setup production in eu-west-1.
I met different difficulties.
First of all I don't think that it's good idea to have 2 source controls. So I left all the sources in codecommit in eu-central-1. Code build also produces only one container which is in eu-central-1 as well. I made a new s3 bucket in eu-west-1 with file containing production environment variables and another file containing git secrets. I updated fargate execution role to have access to the new resources. Still when I tried to run the new fargate service which resides in eu-west-1 I receive the following error:
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed caused by: Post https://api.ecr.eu-central-1.amazonaws.com/: i/o timeout
I see I can't pull image from eu-central-1. I might miss something small but my problems is that I might doing everything totally wrong. Any advice will be much appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
