[Cloud Security] Remove CloudFormation from manual options (#161037)

This commit is contained in:
Paulo Henrique 2023-06-30 16:17:43 -07:00 committed by GitHub
parent e0fdd482e9
commit a25506c842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,10 +103,12 @@ export const getAwsCredentialsFormManualOptions = (): Array<{
value: AwsCredentialsType;
text: string;
}> => {
return Object.entries(getAwsCredentialsFormOptions()).map(([key, value]) => ({
value: key as AwsCredentialsType,
text: value.label,
}));
return Object.entries(getAwsCredentialsFormOptions())
.map(([key, value]) => ({
value: key as AwsCredentialsType,
text: value.label,
}))
.filter(({ value }) => value !== 'cloud_formation');
};
export const DEFAULT_MANUAL_AWS_CREDENTIALS_TYPE = 'assume_role';