/hello-yoga

Primary LanguageJavaScriptMIT LicenseMIT

hello YOGA 🧘‍♀️

What's in here?

  • Next.js version of hello-yoga.co.uk website
  • Amplify App
  • DNS config managed by CloudFormation

CloudFormation stack

aws cloudformation create-stack \
--stack-name 'hello-yoga-amplify' \
--template-body 'file://cloudformation-template.json' \
--tags 'Key=project,Value=hello-yoga-amplify' \
--region 'eu-west-2' \
--capabilities CAPABILITY_IAM \
--parameters ParameterKey=GitHubPersonalAccessToken,ParameterValue=GITHUBTOKENHERE \
\
--profile 'j4e'
% aws cloudformation create-stack --stack-name hello-yoga-amplify --template-body file://hello-yoga-amplify.json --tags 'Key=project,Value=hello-yoga-amplify' --region=eu-west-2

Created CloudFormation stack:

aws cloudformation create-stack --stack-name hello-yoga --template-body file://cloudformation.json --tags 'Key=project,Value=hello-yoga' --region=us-east-1

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn

CloudFront only supports ACM certificates in the US East (N. Virginia) Region (us-east-1). Also the bucket URL is hard-coded to us-east-1.

--capabilities CAPABILITY_IAM is needed if making IAM changes

% aws cloudformation update-stack --stack-name hello-yoga --template-body file://cloudformation.json --tags 'Key=project,Value=hello-yoga' --region=us-east-1 --capabilities CAPABILITY_IAM

Create as Amplify stack

aws cloudformation create-stack --stack-name hello-yoga-amplify --template-body file://hello-yoga-amplify.json --tags 'Key=project,Value=hello-yoga-amplify' --region=eu-west-2