Impact-CMS storybook Cdk App (Typescript)
This CDK app is used to deploys AWS infrastructure (CloudFront and S3 bucket) for storybook deployment.
It is deployed into the AWS accounts:
cs-products-dev :: 338791551814
cs-products-production :: 139248368427
Note: The below example is applicable to dev environment only and assumes you have enablement role assigned in above mentioned AWS Account.
Setup
To test with AWS CDK locally you need to fullfill following prerequisites:
-
You have npm installed on your laptop
-
AWS profile for SSO login is configured in ~/.aws/config as follows
[profile cs-products-dev]
sso_session = cs-products-dev
sso_account_id = 338791551814
sso_role_name = enablement
[sso-session cs-products-dev]
sso_start_url = https://d-906767024e.awsapps.com/start#
sso_region = us-east-1
sso_registration_scopes = enablement
build example
cd impact-cms/infrastructure/impact-design-system
npm run build
synth example
cd impact-cms/infrastructure/impact-design-system
npm run synth
local deploy dev environment example
cd impact-cms/infrastructure/impact-design-system
aws sso login --profile cs-products-dev
export CDK_DEFAULT_ACCOUNT=338791551814
export ENVIRONMENT=dev
export CDK_DEFAULT_REGION=eu-west-1
export AWS_REGION=eu-west-1
export AWS_DEFAULT_PROFILE=cs-products-dev
npm run deploy