-
Notifications
You must be signed in to change notification settings - Fork 37
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
Issue while creating infrastructure #144
Comments
How does your |
hosts
group_vars/all.yml
group_vars/lgr.yml
host_vars/devnet.yml
I intend to tweak these values but wanted to get it up first. |
@thekevinbrown I checked supplied configuration files. Nothing wrong with them from my perspective. Could you please confirm that you
If that is true, it looks like you've already created infrastructure fully or partially since the error says you already have the application with such name in Codedeploy https://console.aws.amazon.com/codesuite/codedeploy/applications. If infrastructure was not fully created I would suggest trying to destroy provisioned infrastructure https://docs.blockscout.com/for-developers/ansible-deployment/destroying-provisioned-infrastructure and then try to deploy it again with |
I'll pull down those latest two commits, then if that doesn't fix it I'll try destroying and recreating, thanks. |
The latest two commits were updates to the Readme, so doubt they would make much difference.
I then googled and found this. So I did
But the region is specified in So this leads me to two questions:
Thanks again for your help. |
Try to disable aws profile in the config and leave only
Regarding Python version, I'd recommend using python3. In this case, you need to change the path to the
Basically, this is the main deployment tool, we use to deploy new chains and release updates at blockscout.com. Once properly configured, it should work fine. Yes, if you want to deploy it manually from scratch on AWS, you need to put huge efforts. The list of AWS features are used to build infra is here https://docs.blockscout.com/for-developers/ansible-deployment/aws-permissions but it should be mentioned there is no step-by-step instruction on how to deploy the whole infra manually.
Take a look here. Here is the manual cleaning instruction https://forum.poa.network/t/aws-settings-for-blockscout-terraform-deployment/1962#cleaning |
Hi @vbaranov, I've now changed to using python3 and leaving just
|
Did you set-up AWS region by means of
Also, I suggest you leave Anyways, what is the output of |
I don't remember how I set up my AWS config as that was at least 2 years ago. Here's
We're based in Sydney so that's a good default for the rest of our AWS work, but I want this deployed in US East 1, hence the settings in the group vars files.
As far as only having aws config in |
@thekevinbrown It looks like your issue with deployment because of the version of Terraform used. The current code from the master branch, indeed, is not stable to use with Terraform 12.x. I've updated our docs with the warning
In order to clean up previously failed deployment, you need to delete corresponding assets in the next AWS resources:
|
I'm not sure how I got into this state, but I seem to be stuck.
The first time I ran
ansible-playbook deploy_infra.yml
I got:I'm not super familiar with Terraform and Ansible, but I know one of the main ideas is that it allows you to be more declarative and less imperative, so I figured running again might fix it. I then got:
Ok...nothing's deployed yet, what if I just completely destroy the infra and deploy it clean? I ran
ansible-playbook destroy.yml
and got:Cool, so that seems clean then...? What if I run
ansible-playbook deploy_infra.yml
again?Ok, seem to be stuck. How do I get rid of the 'saved plan' or clean up all the things it's done so I can start fresh?
The text was updated successfully, but these errors were encountered: