Skip to content

Commit

Permalink
fix: add struct tag for region id
Browse files Browse the repository at this point in the history
  • Loading branch information
bearaujus committed Dec 23, 2024
1 parent ce1cbfb commit 5b26549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/providers/alicloud_ram/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type Credentials struct {
MainAccountID string `mapstructure:"main_account_id" json:"main_account_id" validate:"required"` // example: 5123xxxxxxxxx
AccessKeyID string `mapstructure:"access_key_id" json:"access_key_id" validate:"required,base64"`
AccessKeySecret string `mapstructure:"access_key_secret" json:"access_key_secret" validate:"required,base64"`
RAMRole string `mapstructure:"ram_role" json:"ram_role,omitempty"` // (optional) example: `acs:ram::{MAIN_ACCOUNT_ID}:role/{ROLE_NAME}`
RegionID string // (optional) can be empty for using default region id. see: https://www.alibabacloud.com/help/en/cloud-migration-guide-for-beginners/latest/regions-and-zones
RAMRole string `mapstructure:"ram_role" json:"ram_role,omitempty"` // (optional) example: `acs:ram::{MAIN_ACCOUNT_ID}:role/{ROLE_NAME}`
RegionID string `mapstructure:"region_id" json:"region_id,omitempty"` // (optional) can be empty for using default region id. see: https://www.alibabacloud.com/help/en/cloud-migration-guide-for-beginners/latest/regions-and-zones
}

func (c *Credentials) Encrypt(encryptor domain.Encryptor) error {
Expand Down

0 comments on commit 5b26549

Please sign in to comment.