mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 00:50:38 -05:00
config: validate instance type for aws SNP based on attestation variant (#1963)
* config: validate instance type for aws SNP * apply suggestions
This commit is contained in:
parent
46e144d19b
commit
0a36ce6171
5 changed files with 87 additions and 32 deletions
|
|
@ -26,7 +26,9 @@ func newConfigInstanceTypesCmd() *cobra.Command {
|
|||
}
|
||||
|
||||
func printSupportedInstanceTypes(cmd *cobra.Command, _ []string) {
|
||||
cmd.Printf(`AWS instance families:
|
||||
cmd.Printf(`AWS SNP-enabled instance types:
|
||||
%v
|
||||
AWS NitroTPM-enabled instance types:
|
||||
%v
|
||||
Azure Confidential VM instance types:
|
||||
%v
|
||||
|
|
@ -34,7 +36,7 @@ Azure Trusted Launch instance types:
|
|||
%v
|
||||
GCP instance types:
|
||||
%v
|
||||
`, formatInstanceTypes(instancetypes.AWSSupportedInstanceFamilies), formatInstanceTypes(instancetypes.AzureCVMInstanceTypes), formatInstanceTypes(instancetypes.AzureTrustedLaunchInstanceTypes), formatInstanceTypes(instancetypes.GCPInstanceTypes))
|
||||
`, formatInstanceTypes(instancetypes.AWSSNPSupportedInstanceFamilies), formatInstanceTypes(instancetypes.AWSSupportedInstanceFamilies), formatInstanceTypes(instancetypes.AzureCVMInstanceTypes), formatInstanceTypes(instancetypes.AzureTrustedLaunchInstanceTypes), formatInstanceTypes(instancetypes.GCPInstanceTypes))
|
||||
}
|
||||
|
||||
func formatInstanceTypes(types []string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue