# CloudFormation Templates This folder contains the AWS CloudFormation templates that were generated from the AWS CDK code. They can be deployed without having to install AWS CDK. To deploy these stacks, run the following commands from within this directory: ## Create Deployment Bucket ``` aws s3api create-bucket --bucket -matter-cfn-deployment-assets ``` Note: Make sure you have write access to the created bucket before proceeding. ## Deploy Lambda Assets ``` aws s3 cp assets/ s3://-matter-cfn-deployment-assets --recursive ``` ## Deploy PAA Stack ``` aws cloudformation deploy --template-file PAAStack.yaml --stack-name PAAStack --parameter-overrides vendorId= validityInDays= paaCommonName= paaOrganization= paaOU= --capabilities CAPABILITY_NAMED_IAM --s3-bucket -matter-cfn-deployment-assets ``` ## Deploy PAI Stack Note: This template will only create a single PAI. ``` aws cloudformation deploy --template-file PAIStack.yaml --stack-name PAIStack --parameter-overrides vendorId= productId= validityInDays= paaArn= paiCommonName= paiOrganization= paiOU= --capabilities CAPABILITY_NAMED_IAM --s3-bucket -matter-cfn-deployment-assets ```