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

Error after removing layers #62

Open
Jarek-Rolski opened this issue Nov 7, 2023 · 1 comment
Open

Error after removing layers #62

Jarek-Rolski opened this issue Nov 7, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Jarek-Rolski
Copy link
Contributor

After removing rapid layers with terraform module, rapid stops working.
Problem is caused by permissions in terraform table to removed layers.
Objects created here PermissionItem discover mismatch and raise error, that can be seen in ECS logs:
CloudWatch2

@TobyDrane
Copy link
Contributor

TobyDrane commented Nov 24, 2023

If you have data and permissions within rAPId for a previous setup that used to have layers and now those layers change within the rAPId setup you'll either have to write a custom migration script to move all the new data and permissions over into your new setup or remove everything and start from the new fresh rAPId setup.

When changing infrastructure it won't change any of the underlying data alongside it because this isn't the nature of the terraform. The errors above are failures in the Pydantic model validation because of the change of underlying infrastructure trying to match with the old data.

If this a situation you are going to be running into alot I would be happy to merge a custom migration you write into the project to handle this.

@TobyDrane TobyDrane added the wontfix This will not be worked on label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants