New Instance Install Issues

Based on this command

ansible-playbook playbooks/new-platform.yml -l pre-release-testbed

1.) When first running the ansible script, you will see the error:

TASK [determine if upgrade is needed] **********************************************************************************************************************************************************************************
Tuesday 16 June 2026  09:13:17 -0600 (0:00:01.037)       0:00:24.262 **********
fatal: [pre-release-testbed]: FAILED! =>
msg: Input version value cannot be empty

This is because a version is not yet available. The assumption was that there would be a version in the “phase3/bettrdata-base” docker to pull the version from. Since this is not there we will need to add a parameter:

ansible-playbook playbooks/new-platform.yml -l pre-release-testbed -e "bypass_version_check=true"

2.) The next error is

Again, this assumes there already is a .config file, which there will not be in a new instance creation. We can try to create the .config file with the command: ./sync-config.sh pre-release-testbed.bettrdata.io

But this will not work now, because the role created does not have the permissions to access the Parameter Store. The role policy for Param store is

But should include "arn:aws:ssm:us-west-2:076269190958:parameter/pre-release-testbed.bettrdata.io"

This may also need a refresh of the permissons in AWS and a reboot

sudo systemctl restart amazon-ssm-agent || true
sudo reboot

When again trying to run

$ ansible-playbook playbooks/new-platform.yml -l pre-release-testbed -e "bypass_version_check=true"

I get the error

That is because it is looking for the keys

ZIP_CODES_API_KEY
ZIP_CODES_API_LIMIT

Which are not in the base .config file. I have added them to move forward.

Rerunning the command

$ ansible-playbook playbooks/new-platform.yml -l pre-release-testbed -e "bypass_version_check=true"

I now get

This is apparently a bad escape issue. The urls should not be escaped, but double quoted

Had issues with trying to sync the config

Added param to not synch config

ansible-playbook playbooks/new-platform.yml -l stirista-prod -e "bypass_version_check=true" -e "sync_config=false"

I tried to run the playbook

ansible-playbook playbooks/update-cognito-refresh-token.yml -l stirista-prod

However, it ran into an error

It needs to add an additional policy to the role