mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 07:29:38 -05:00
verify: add AWS support
This commit is contained in:
parent
6fce8f77d3
commit
6dc45959e1
@ -11,9 +11,11 @@ import (
|
||||
"net"
|
||||
"strconv"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/aws"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/azure"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/gcp"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/qemu"
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
||||
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||
"github.com/edgelesssys/constellation/v2/internal/logger"
|
||||
"github.com/edgelesssys/constellation/v2/verify/server"
|
||||
@ -33,12 +35,14 @@ func main() {
|
||||
Infof("Constellation Verification Service")
|
||||
|
||||
var issuer server.AttestationIssuer
|
||||
switch *provider {
|
||||
case "gcp":
|
||||
switch cloudprovider.FromString(*provider) {
|
||||
case cloudprovider.AWS:
|
||||
issuer = aws.NewIssuer()
|
||||
case cloudprovider.GCP:
|
||||
issuer = gcp.NewIssuer()
|
||||
case "azure":
|
||||
case cloudprovider.Azure:
|
||||
issuer = azure.NewIssuer()
|
||||
case "qemu":
|
||||
case cloudprovider.QEMU:
|
||||
issuer = qemu.NewIssuer()
|
||||
default:
|
||||
log.With(zap.String("cloudProvider", *provider)).Fatalf("Unknown cloud provider")
|
||||
|
Loading…
Reference in New Issue
Block a user