/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /** * Renders error message for Account Costs */ import { Alert, Container, ExpandableSection, Link, Stack, Text } from 'aws-northstar'; import React from 'react'; interface AccountCostsErrorProps { error: string; } // eslint-disable-next-line handle-callback-err export const AccountCostsError: React.FC = () => ( It looks like we cannot access costs for this account. If you are the account owner, please make sure that{' '} AWS Cost Explorer and the Cost allocation tag Application are enabled. {/* TODO: add github issue for reporting cost issues */} {/* If the error persists, open a{' '} ticket , and provide this error message: {error} */} ); export default AccountCostsError; export const ZeroCostWarning: React.FC = () => ( Looks like we cannot calculate cost for this account. If you are the account owner, please make sure that the{' '} Cost allocation tag Application is enabled. ); export const HowToEnableCostExplorer: React.FC = () => { return (
  1. Log into the AWS console
  2. Open{' '} AWS Cost Explorer
  3. AWS Cost Explorer will automatically become enabled upon navigating to this page
May take up to 24 hours to show up after enabling
); }; export const HowToEnableApplicationTag: React.FC = () => { return (
  1. Log into the AWS console
  2. Open{' '} Cost allocation tags
  3. Select Application tag and click Activate
); };