This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Outputs: | |
| InstallURL: | |
| Value: !Join | |
| - '' | |
| - - 'http://' | |
| - !GetAtt | |
| - ElasticLoadBalancer | |
| - DNSName | |
| - /wp-admin/install.php | |
| Description: Installation URL of the WordPress website |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Outputs": { | |
| "InstallURL": { | |
| "Value": { | |
| "Fn::Join": [ | |
| "", | |
| [ | |
| "http://", | |
| { | |
| "Fn::GetAtt": [ | |
| "ElasticLoadBalancer", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| ElasticLoadBalancer: | |
| Type: 'AWS::ElasticLoadBalancing::LoadBalancer' | |
| Properties: | |
| AvailabilityZones: !GetAZs '' | |
| Instances: | |
| - !Ref Ec2Instance1 | |
| - !Ref Ec2Instance2 | |
| Listeners: | |
| - LoadBalancerPort: '80' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Resources": { | |
| "ElasticLoadBalancer": { | |
| "Type": "AWS::ElasticLoadBalancing::LoadBalancer", | |
| "Properties": { | |
| "AvailabilityZones": { | |
| "Fn::GetAZs": "" | |
| }, | |
| "Instances": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Parameters: | |
| KeyName: | |
| Description: Name of an existing EC2 KeyPair | |
| Type: String | |
| Mappings: | |
| RegionMap: | |
| us-east-1: | |
| AMI: ami-76f0061f | |
| us-west-1: | |
| AMI: ami-655a0a20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Parameters": { | |
| "KeyName": { | |
| "Description": "Name for existing EC2 KeyPair", | |
| "Type": "String" | |
| } | |
| }, | |
| "Mappings": { | |
| "RegionMap": { | |
| "us-east-1": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Parameters: | |
| KeyName: | |
| Description: Name of an Existing EC2 KeyPair | |
| Type: AWS::EC2::KeyPair::KeyName | |
| WordPressUser: | |
| Default: admin | |
| NoEcho: true | |
| Description: The WordPress database admin | |
| Type: String | |
| MinLength: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Parameters": { | |
| "KeyName": { | |
| "Description": "Name of an existing EC2 KeyPair", | |
| "Type": "AWS::EC2::KeyPair::KeyName" | |
| }, | |
| "WordPressUser": { | |
| "Default": "admin", | |
| "NoEcho": "true", | |
| "Description": "The WordPress database admin", | |
| "Type": "String", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| myBucket: | |
| Type: 'AWS::S3::Bucket' | |
| myDistribution: | |
| Type: 'AWS::CloudFront::Distribution' | |
| Properties: | |
| Origins: | |
| - DomainName: !GetAtt | |
| - myBucket | |
| - DomainName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Resources": { | |
| "myBucket": { | |
| "Type": "AWS::S3::Bucket" | |
| }, | |
| "myDistribution": { | |
| "Type": "AWS::CloudFront::Distribution", | |
| "Properties": { | |
| "origins": [ | |
| { |
NewerOlder