You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add instance_profile config field for EC2 Image Builder (#203)
- Add `InstanceProfile` field to `Config` struct with `mapstructure:"instance_profile"` tag
- Wire `ami build` to fall back to `cfg.InstanceProfile` via `getFlagString` (flag > config > empty)
- Add viper default and `dreadgoad.yaml` entry for `instance_profile`
- Add `TestConfigInstanceProfile` (struct field + mapstructure tag validation) and `TestGetFlagString` (4-case precedence table) in new `cmd/ami_test.go`
- [x] `go test ./internal/config/` — all pass
- [x] `go test ./cmd/` — all pass (including new `TestGetFlagString`)
0 commit comments