接下来,您需要创建一条域名解析记录,以解析 WordPress 网站域名到 Amazon CloudFront 分配的路由,并成功访问您的网站。 注意:我们假设您的域名托管在Amazon Route53,且以域名 sample.example.cn 为例进行展示。 若您尚未使用 Amazon Route53 托管您的域名,我们建议您使用 Amazon Route53 托管域名的解析,具体步骤参考h...
In the following example for a template that creates a WordPress site,InstallURLis the string returned by aFn::Joinfunction call that concatenateshttp://, the DNS name of the resourceElasticLoadBalancer, and/wp-admin/install.php. The output value would be similar to the following: ...
The sample WordPress template:wordpress-single-instance.yaml The template configuration file for the test stack.:test-stack-configuration.json The template configuration file for the production stack:prod-stack-configuration.json Extract all of the files, and then use any text editor to ...
Create a Stack Creating a new CloudFormation stack via the original CLI involved thecfn-create-stackcommand. For this example, I’m using a sample WordPress template stored in S3 (and publicly available as part of oursample template library) . To run the stack using the new AWS CLI I execu...
Create the basic templatepython cfh.py -cf usecase4.json -desc "Use case 4 - Complex Wordpress example" Create a VPCpython cfh.py -cf usecase4.json -add vpc myVPC -cidr 10.0.0.0/22 Create two public subnets, one in each availability zonepython cfh.py -cf usecase4.json -add public...
There are two output URLs for the master template. The WPSiteURL will take you to your new WordPress site. It will be the site domain name if you provided one, the CloudFront URL if you chose to create a CloudFront distribution, or the domain name of the public application load balancer...
In the Template section, select Specify an Amazon S3 Template URL to type or paste the URL for the sample WordPress template, and then click Next: In the KeyName field, enter the name of a valid Amazon EC2 key pair in the same region we are creating the stack. ...
Example Of CloudFormation Architecture By using CloudFormation templates, you can able to define and model AWS resources that can be created and updated. These templates are written in aJavaScript Object Notation (JSON). Each template requires a specific syntax and structure that depends on the types...
On the "Specify Details" page, assign a name to AWS WAF configuration in the Stack name field. This will also be the name of the web ACL that the template creates. Then, type in "CloudFront Access Log Bucket Name" which is one of the two required field to fill. ...
AWSTemplateFormatVersion: '2010-09-09' Description: Template for an instnce with Base Amazon Linux AMI + CLI Tools Parameters: KeyName: Description: Name of an existing EC2 KeyPair Default: einsteinish Type: String AWSAccessKey: Type: String ...