All files / modules/35-connectors/components/CreateConnector/CENGAwsConnector/steps CrossAccountRoleExtension.tsx

100% Statements 9/9
100% Branches 2/2
100% Functions 1/1
100% Lines 9/9

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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68              220x 220x 220x 220x   220x 1x 1x 1x                                                                                                     220x  
/*
 * 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 { Container, Heading } from '@wings-software/uicore'
import { useStrings } from 'framework/strings'
import css from '../CreateCeAwsConnector.module.scss'
 
const CrossAccountRoleExtension = (props: { previewTemplateLink?: string }) => {
  const { getString } = useStrings()
  const { previewTemplateLink } = props
  return (
    <Container className={css.extention}>
      <Heading level={2} className={css.header}>
        {getString('connectors.ceAws.crossAccountRoleExtention.heading')}
      </Heading>
      <p>{getString('connectors.ceAws.crossAccountRoleExtention.subHeading')}</p>
      <ol>
        <li>
          {getString('connectors.ceAws.crossAccountRoleExtention.step1.p1')}
          <a href={previewTemplateLink || ''} target="_blank" rel="noreferrer">
            {getString('connectors.ceAws.crossAccountRoleExtention.step1.p2')}
          </a>{' '}
          {getString('connectors.ceAws.crossAccountRoleExtention.step1.p3')}
        </li>
        <li>
          {getString('connectors.ceAws.crossAccountRoleExtention.step2.heading')}
          <ul>
            <li>{getString('connectors.ceAws.crossAccountRoleExtention.step2.subStep1')}</li>
            <li>
              {getString('connectors.ceAws.crossAccountRoleExtention.step2.subStep2.p1')}
              <span className={css.gray}>
                {getString('connectors.ceAws.crossAccountRoleExtention.step2.subStep2.p2')}
              </span>
            </li>
          </ul>
        </li>
        <li>
          {getString('connectors.ceAws.crossAccountRoleExtention.step3.p1')}{' '}
          <span className={css.gray}>{getString('connectors.ceAws.crossAccountRoleExtention.step3.p2')}</span>{' '}
          {getString('connectors.ceAws.crossAccountRoleExtention.step3.p3')}
          <span className={css.gray}>{getString('connectors.ceAws.crossAccountRoleExtention.step3.p4')}</span>.
        </li>
        <li>{getString('connectors.ceAws.crossAccountRoleExtention.step4')}</li>
        <li>{getString('connectors.ceAws.crossAccountRoleExtention.step5')}</li>
      </ol>
      <p>{getString('connectors.ceAws.curExtention.moreHelp.heading')}</p>
      <ul>
        <li>
          <a
            href="https://docs.harness.io/article/5ql31pdjcm-enable-continuous-efficiency-for-aws"
            target="_blank"
            rel="noreferrer"
          >
            {getString('connectors.ceAws.curExtention.moreHelp.step2')}
          </a>
        </li>
      </ul>
    </Container>
  )
}
 
export default CrossAccountRoleExtension