Alek
11/14/2025, 2:51 PMatmos/v1/ComponentVendorConfig?
I am performing a breaking change upgrade to aurora-postgres component, and to that end, I would like to pull in a temporary, canary version of my component:
# ./stacks/catalog/aurora-postgres/staging.yaml
import:
- catalog/aurora-postgres/defaults
components:
terraform:
aurora-postgres:
backend:
s3:
workspace_key_prefix: aurora-postgres
metadata:
component: aurora-postgres/v1.540.4 # changed from "aurora-postgres"
inherits:
- aurora-postgres/defaults
vars:
enabled: true
...
# ./components/terraform/aurora-postgres
└── .
├── .terraform/
│ ├── environment
│ ├── modules/
│ ├── providers/
│ └── terraform.tfstate
├── backend.tf.json
├── cluster-regional.tf
├── component.yaml
├── context.tf
├── kms.tf
├── main.tf
├── outputs.tf
├── plat-euw1-staging-aurora-postgres.planfile
├── plat-euw1-staging-aurora-postgres.terraform.tfvars.json
├── providers.tf
├── remote-state.tf
├── ssm.tf
├── v1.540.4/
│ ├── .terraform/
│ ├── README.md
│ ├── backend.tf.json
│ ├── cluster-regional.tf
│ ├── component.yaml
│ ├── context.tf
│ ├── kms.tf
│ ├── main.tf
│ ├── outputs.tf
│ ├── plat-euw1-staging-aurora-postgres-aurora-postgres.terraform.tfvars.json
│ ├── plat-euw1-staging-aurora-postgres.planfile
│ ├── plat-euw1-staging-aurora-postgres.terraform.tfvars.json
│ ├── providers.tf
│ ├── remote-state.tf
│ ├── ssm.tf
│ ├── variables.tf
│ └── versions.tf
├── variables.tf
└── versions.tf
This doesn't seem to work, the vendorred component is miss-referencing the modules:
infrastructure on main [$✘»!+?] via 🐳 colima on ☁️ core-identity.IdentityAdminTeamAccess (eu-west-1) [50m39s] took 11s
7% ❯ atmos tf plan aurora-postgres -s plat-euw1-staging
Initializing the backend...
Successfully configured the backend "s3"! OpenTofu will automatically
use this backend unless the backend configuration changes.
Initializing modules...
...
╷
│ Error: Unreadable module directory
│
│ Unable to evaluate directory symlink: lstat ../account-map: no such file or directory
╵
╷
│ Error: Unreadable module directory
│
│ The directory could not be read for module "iam_roles" at providers.tf:16.
╵
Error
exit status 1
Am I on the right path here?Alek
11/14/2025, 4:01 PM└── .
├── components/
│ └── terraform/
│ ├── aurora-postgres/ # Version v1.536.0
│ └── aurora-postgres-v1.540.4/ # Version v1.540.0
And configuring the desired stack to target the old statefile:
components:
terraform:
aurora-postgres:
# TODO: `backend` and `metadata` enable canary component testing.
# Remove once the component has been tested, and the main component upgraded
backend:
s3:
workspace_key_prefix: aurora-postgres
metadata:
component: aurora-postgres-v1.540.4
terraform_workspace: plat-euw1-staging
vars:
...Alek
11/14/2025, 4:08 PMErik Osterman (Cloud Posse)
11/14/2025, 5:22 PMErik Osterman (Cloud Posse)
11/14/2025, 5:22 PMErik Osterman (Cloud Posse)
11/14/2025, 5:23 PM└── .
├── components/
│ └── terraform/
│ ├── aurora-postgres/ # Version v1.536.0
│ └── aurora-postgres-v1.540.4/ # Version v1.540.0Yes, this is what we would recommend.
Erik Osterman (Cloud Posse)
11/14/2025, 5:24 PMErik Osterman (Cloud Posse)
11/17/2025, 11:18 PMAlek
11/20/2025, 9:29 AM