-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] [Cloud Security] Show only ColudFormation deployment option (#…
- Loading branch information
Showing
12 changed files
with
102 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...c/components/agent_enrollment_flyout/steps/install_cloud_formation_managed_agent_step.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
import type { EuiContainedStepProps } from '@elastic/eui/src/components/steps/steps'; | ||
|
||
import type { GetOneEnrollmentAPIKeyResponse } from '../../../../common/types/rest_spec/enrollment_api_key'; | ||
|
||
import { CloudFormationInstructions } from '../cloud_formation_instructions'; | ||
|
||
export const InstallCloudFormationManagedAgentStep = ({ | ||
selectedApiKeyId, | ||
apiKeyData, | ||
enrollToken, | ||
isComplete, | ||
cloudFormationTemplateUrl, | ||
}: { | ||
selectedApiKeyId?: string; | ||
apiKeyData?: GetOneEnrollmentAPIKeyResponse | null; | ||
enrollToken?: string; | ||
isComplete?: boolean; | ||
cloudFormationTemplateUrl: string; | ||
}): EuiContainedStepProps => { | ||
const nonCompleteStatus = selectedApiKeyId ? undefined : 'disabled'; | ||
const status = isComplete ? 'complete' : nonCompleteStatus; | ||
return { | ||
status, | ||
title: i18n.translate('xpack.fleet.agentEnrollment.cloudFormation.stepEnrollAndRunAgentTitle', { | ||
defaultMessage: 'Install Elastic Agent on your cloud', | ||
}), | ||
children: | ||
selectedApiKeyId && apiKeyData ? ( | ||
<CloudFormationInstructions | ||
cloudFormationTemplateUrl={cloudFormationTemplateUrl} | ||
enrollmentAPIKey={enrollToken} | ||
/> | ||
) : ( | ||
<React.Fragment /> | ||
), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters