-
Notifications
You must be signed in to change notification settings - Fork 0
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
Stackpack: Gitea #29
Stackpack: Gitea #29
Conversation
tmp_dir = TempDir() | ||
if regen: | ||
logger.info("Regenerating iac for %s", user_pack.id) | ||
stack_packs = get_stack_packs() | ||
_, iac = await user_pack.run_pack(stack_packs, store, tmp_dir.dir) | ||
else: | ||
iac = store.get_iac(user_pack.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just as a note, were always going to have to regenerate if the base stack hasnt been deployed since we wont know the imports yet, so this will likely change a little soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, makes sense. I just made this real quick since I kept forgetting to run the PATCH before install.
# Make sure the SG rule is added to allow the LB in public subnets | ||
# to talk to the ECS service in private subnets | ||
aws:load_balancer:gitea-lb -> aws:ecs_service:gitea-service: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this is an important note for all of them, we should still always have explicit edges between our major resources to ensure path solving runs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like this should be solvable from the engine to prevent such situations (took me a bit of investigation to figure out this was happening). In the meantime though, explicit edges will be required as you mentioned.
Requires klothoplatform/klotho#952
Also includes:
KEEP_TMP
regen
query parameter to install to force regeneration, useful for testing