theonlyway / typescript-react-toolsconsole

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local development

cd tools-console
npm install
import awsConfig from './aws_config'
//declare var awsConfig: IAwsConfig;
  • If there is no development enivonrment already setup where you can get the configuration for the template for the configuration is stored in tools-console/aws_config.sh. You can use that template and fill out the values yourself manually
  • At the top of tools-console/src/aws_config.tsx put the following
import { IAwsConfig } from './types/awsconfig'
  • Change the line where the const is specified to the following
export const awsConfig: IAwsConfig = {
export default awsConfig
"redirectSignIn": "http://localhost:3000/",
"redirectSignOut": "http://localhost:3000/",
  • Navigate to the development Cognito User Pool
    • Navigate to App client settings
    • Add http://localhost:3000/ to both the Callback URL(s) and Sign out URL(s) and then Save changes
    • Be sure to remove them once done
  • Start the local development server
npm start

Requirements

Name Version
terraform >= 0.12.4

Providers

Name Version
aws n/a

Modules

Name Source Version
backend ./modules/backend n/a
frontend ./modules/frontend n/a

Resources

Name Type
aws_kms_alias.this resource
aws_kms_key.this resource
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
aws_cli_profile_name AWS CLI profile to use for credentials if not using the default string n/a yes
initial_admin_email_address Default email address for initial login to Cognito. Initial login details will be sent here string n/a yes
name Name of the solution string "ToolsConsole" no
oidc_base_url OIDC base URL string n/a yes
oidc_client_id OIDC base URL string n/a yes
oidc_client_secret Client secret for the OIDC JWT lambda string n/a yes
oidc_discovery_url URL for the OIDC discovery metadata string n/a yes
oidc_resource_id OIDC resource id string n/a yes
recaptcha_v2_site_key Recaptcha v2 site key string n/a yes
vault_api_url URL to the vault API string n/a yes

Outputs

No outputs.

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 74.1%Language:HCL 12.3%Language:Python 8.6%Language:JavaScript 3.2%Language:PowerShell 0.6%Language:Shell 0.5%Language:HTML 0.5%Language:CSS 0.3%