All files / modules/75-ce/components/Connectors/AWSCOConnector AWSConnectorExtension.tsx

0% Statements 0/7
100% Branches 0/0
0% Functions 0/1
0% Lines 0/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53                                                                                                         
/*
 * Copyright 2021 Harness Inc. All rights reserved.
 * Use of this source code is governed by the PolyForm Shield 1.0.0 license
 * that can be found in the licenses directory at the root of this repository, also available at
 * https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt.
 */
 
import React from 'react'
import { Color } from '@harness/design-system'
import { Container, Heading, Text } from '@wings-software/uicore'
import css from './AWSCOConnector.module.scss'
 
const AWSConnectorExtension: React.FC = () => {
  return (
    <Container className={css.awsConnectorExtension}>
      <Heading level={2} color={Color.GREY_500} className={css.header}>
        Create cross-account IAM role using AWS CloudFormation template
      </Heading>
      <ol type={'1'}>
        <li>
          <Text>Log in to your master account to launch Cloudformation template</Text>
          <Text style={{ marginTop: 'var(--spacing-large)' }}>
            You can <span>Preview Template</span> to understand all the permissions involved.
          </Text>
        </li>
        <li>
          <Text>On the console:</Text>
          <ul>
            <li>Click the checkbox to acknowledge the IAM role creation</li>
            <li>
              Click <span className={css.codeText}>Create stack</span>
            </li>
          </ul>
        </li>
        <li>
          <Text>
            On stack details page click on <span className={css.codeText}>Outputs</span> tab and copy{' '}
            <span className={css.codeText}>IAM ARN</span>.
          </Text>
        </li>
        <li>
          <Text>Provide that IAM ARN in Harness UI.</Text>
        </li>
        <li>
          <Text>External ID is a random unique value to provide additional secure authentication.</Text>
        </li>
      </ol>
    </Container>
  )
}
 
export default AWSConnectorExtension