feat: add support for aws imds credentials

This commit is contained in:
Fu Diwei
2026-07-30 16:37:17 +08:00
committed by RHQYZ
parent bd6d1266b5
commit 4e7b1a0758
44 changed files with 551 additions and 78 deletions
@@ -17,6 +17,7 @@ func init() {
}
provider, err := chlgimpl.NewChallenger(&chlgimpl.ChallengerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := chlgimpl.NewChallenger(&chlgimpl.ChallengerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
@@ -17,6 +17,7 @@ func init() {
}
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
AuthMethod: credentials.AuthMethod,
AccessKeyId: credentials.AccessKeyId,
SecretAccessKey: credentials.SecretAccessKey,
Region: xmaps.GetString(options.ProviderExtendedConfig, "region"),
+1
View File
@@ -82,6 +82,7 @@ type AccessConfigForArvanCloud struct {
}
type AccessConfigForAWS struct {
AuthMethod string `json:"authMethod"`
AccessKeyId string `json:"accessKeyId"`
SecretAccessKey string `json:"secretAccessKey"`
}