Marcin Brański
03/30/2021, 10:15 AMatmos cloudposse
Vendir sync need to download repos defined in vendir.yaml to put them to components.
There are 16 modules using https://github.com/cloudposse/terraform-aws-components
I think there are two problems slowing me down:
• vendir doesn’t have caching layer for modules using same version
• every change to vendir.yaml need to redownload all modules and compare them to components even if nothing has changed (.vendir-tmp/git is cleared after every module downloaded)
• vendir seems slow… real 4m46.736s I know it’s partially because the repo is quite big but just using git it’s super quick to clone it.
vendir lastest 0.17.0
I wonder how it behave with many many modules and upgrades to them.
Is there a plan to make it more quick?Erik Osterman (Cloud Posse)
03/30/2021, 4:53 PMvendir effectively is blocked by https://github.com/vmware-tanzu/carvel-vendir/issues/37Erik Osterman (Cloud Posse)
03/30/2021, 4:53 PMErik Osterman (Cloud Posse)
03/30/2021, 4:54 PMErik Osterman (Cloud Posse)
03/30/2021, 4:54 PMErik Osterman (Cloud Posse)
03/30/2021, 4:54 PMErik Osterman (Cloud Posse)
03/30/2021, 4:54 PMvendir is primarily to accelerate the coldstart process.Erik Osterman (Cloud Posse)
03/30/2021, 4:56 PMterraform-aws-components there are already quite out of date. We have new ones. If you reach out to me directly, I can probably get you access to newer ones provided you help us upstream them.Marcin Brański
03/30/2021, 6:23 PMtf13 because of that.
Our (cloudposse) objective usingUnderstand, I thought it’s new pattern where vendir would populate components but it seems we should be putting new modules (manually) tois primarily to accelerate the coldstart process.vendir
components dir and not execute vendir beside bootstrapping, yeah?
Early access to updated modules would be great.
What I ran into today is that variables (none of them, context as well) from terraform module are not passed to modules
tfstate-backend:
vars:
namespace: terraform
force_destroy: false
prevent_unencrypted_uploads: true
enable_server_side_encryption: true
but global vars works…
I need to wrap my head around that…
So for multiaccount setup it’s recommended multi repo?Erik Osterman (Cloud Posse)
03/30/2021, 9:17 PMt it seems we should be putting new modules (manually) toCorrectdir and not executecomponentsbeside bootstrapping, yeah?vendir
Erik Osterman (Cloud Posse)
03/30/2021, 9:17 PMEarly access to updated modules would be great.Yup, shoot me an email and let's discuss. This benefits everyone.
Erik Osterman (Cloud Posse)
03/30/2021, 9:17 PMWhat I ran into today is that variables (none of them, context as well) from terraform module are not passed to modulesNah, that's probably just a whitespace issue 😃
Erik Osterman (Cloud Posse)
03/30/2021, 9:18 PMErik Osterman (Cloud Posse)
03/30/2021, 9:18 PMSo for multiaccount setup it’s recommended multi repo? (No - we've entirely walked away from this approach. We use a mono repo for infrastructure.
Erik Osterman (Cloud Posse)
03/30/2021, 9:19 PMMarcin Brański
03/31/2021, 8:24 AMatmos . I need some more time to ask better questions but I love the idea ❤️
My bad with not passing context was that I mixed reference architecture, atmos example and atmos tutorial which resulted in wrong yaml definition. I had:
components:
vpc:
vars:
cidr_block: "10.100.0.0/16"
where it should be
components:
terraform:
vpc:
vars:
cidr_block: "10.100.0.0/16"Erik Osterman (Cloud Posse)
03/31/2021, 5:58 PMErik Osterman (Cloud Posse)
03/31/2021, 5:59 PM