diff --git a/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/aws.go b/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/aws.go index 890d14169b..b4f09dc1b4 100644 --- a/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/aws.go +++ b/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/aws.go @@ -85,7 +85,7 @@ func (a *AWS) ParseMetadata(metadata *MetadataConfig) (*runtime.PlatformNetworkC Zone: metadata.Zone, InstanceType: metadata.InstanceType, InstanceID: metadata.InstanceID, - ProviderID: fmt.Sprintf("aws://%s/%s", metadata.Zone, metadata.InstanceID), + ProviderID: fmt.Sprintf("aws:///%s/%s", metadata.Zone, metadata.InstanceID), Spot: metadata.InstanceLifeCycle == "spot", } diff --git a/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/testdata/expected.yaml b/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/testdata/expected.yaml index d28facea64..15bec75e5e 100644 --- a/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/testdata/expected.yaml +++ b/internal/app/machined/pkg/runtime/v1alpha1/platform/aws/testdata/expected.yaml @@ -16,4 +16,4 @@ metadata: region: us-east-1 zone: us-east-1a instanceId: i-0a0a0a0a0a0a0a0a0 - providerId: aws://us-east-1a/i-0a0a0a0a0a0a0a0a0 + providerId: aws:///us-east-1a/i-0a0a0a0a0a0a0a0a0