These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.
No tags are explicitly set on the resources. Tags must be set as part of the template deployment with the --tags option during stack creation. https://docs.aws.amazon.com/cli/latest/reference/cloudformation/create-stack.html Tags for auditing/accounting
Metadata is mostly for organizing and presenting Parameters in a better way when using CloudFormation in the AWS Web UI.
!FindInMap [AccountMap, !Ref "AWS::AccountId", certificate]
CloudOps NonProd
CloudOps Prod
Determine if we're using the default wildcard certificate, or if this is a custom cert.
Sets the required policy on the S3 bucket to allow web hosting.
Creates an IAM user that can only connect to the S3 bucket specified.
For the website DNS record we're making in Route 53, we need to do something different if we're using the default wildcard SSL cert, or if we're using a custom domain cert. If its the default wildcard cert, then the SiteName must be a subdomain of the local hostedzone, so we can just use the SiteName that is passed in. If its a custom domain, then the route53 record we make still needs to be a subdomain of the local hostedzone, so we have to build one from the stack name. This will become the CNAME target for the customer to reference wherever they are setting their custom domain up at.
UA CloudOPS Serverless Website Template
This CloudFormation template will deploy the following resources: