mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-16 00:14:15 -05:00
join-service: add AWS attestation
This commit is contained in:
parent
b69d19c3d6
commit
3aa0177333
2 changed files with 11 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/atls"
|
||||
awscloud "github.com/edgelesssys/constellation/v2/internal/cloud/aws"
|
||||
azurecloud "github.com/edgelesssys/constellation/v2/internal/cloud/azure"
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
||||
gcpcloud "github.com/edgelesssys/constellation/v2/internal/cloud/gcp"
|
||||
|
|
@ -118,6 +119,11 @@ func getVPCIP(ctx context.Context, provider string) (string, error) {
|
|||
var err error
|
||||
|
||||
switch cloudprovider.FromString(provider) {
|
||||
case cloudprovider.AWS:
|
||||
metadata, err = awscloud.New(ctx)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
case cloudprovider.Azure:
|
||||
metadata, err = azurecloud.NewMetadata(ctx)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue